Documentation ¶
Index ¶
- Variables
- func AuditLog(from, to, limit, offset int64, reverse bool) ([]*proto.ChangeLog, error)
- func Create(ch *proto.Change) error
- func Delete(ch *proto.Change) error
- func Init() error
- func Read(id string) (*proto.Change, error)
- func Register(backend DB)
- func Search(id, author string, limit, offset int64) ([]*proto.Change, error)
- func Update(ch *proto.Change) error
- type DB
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
Types ¶
type DB ¶
type DB interface { Init() error Create(*proto.Change) error Read(id string) (*proto.Change, error) Update(*proto.Change) error Delete(*proto.Change) error Search(id, author string, limit, offset int64) ([]*proto.Change, error) AuditLog(from, to int64, limit, offset int64, reverse bool) ([]*proto.ChangeLog, error) }
Click to show internal directories.
Click to hide internal directories.