2024-07-01 21:55:23 +00:00
|
|
|
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
|
|
|
|
|
|
|
|
package data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Validator interface {
|
|
|
|
Validate() error
|
|
|
|
}
|
|
|
|
|
|
|
|
type Creator interface {
|
|
|
|
Create(context.Context) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type Reader interface {
|
|
|
|
Read(context.Context) ([]byte, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type Updater interface {
|
|
|
|
Update(context.Context) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type Deleter interface {
|
|
|
|
Delete(context.Context) error
|
|
|
|
}
|
|
|
|
|
2024-09-19 08:03:23 +00:00
|
|
|
type Info interface {
|
|
|
|
ReadStat() error
|
|
|
|
}
|
|
|
|
|
2024-08-15 15:12:42 +00:00
|
|
|
type Crudder interface {
|
2024-07-01 21:55:23 +00:00
|
|
|
Creator
|
|
|
|
Reader
|
|
|
|
Updater
|
|
|
|
Deleter
|
|
|
|
}
|