Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.New("source already registered")
View Source
var ErrInternal = errors.New("source storage internal failure")
View Source
var ErrNotFound = errors.New("source not registered")
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { io.Closer Create(ctx context.Context, src model.Source) (err error) Read(ctx context.Context, srcId string) (src model.Source, err error) Update(ctx context.Context, src model.Source) (err error) Delete(ctx context.Context, srcId, groupId, userId string) (err error) List(ctx context.Context, filter model.Filter, limit uint32, cursor string, order model.Order) (page []string, err error) Count(ctx context.Context) (count int64, err error) }
func NewStorage ¶
func NewStorageMock ¶
func NewStorageMock() Storage
Click to show internal directories.
Click to hide internal directories.