Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.New("channel with the same id is already present")
View Source
var ErrInternal = errors.New("internal failure")
View Source
var ErrNotFound = errors.New("channel not found")
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { io.Closer Create(ctx context.Context, ch model.Channel) (err error) Read(ctx context.Context, link string) (ch model.Channel, err error) Update(ctx context.Context, link string, last time.Time) (err error) Delete(ctx context.Context, link string) (err error) GetPage(ctx context.Context, filter model.ChannelFilter, limit uint32, cursor string, order model.Order) (page []model.Channel, err error) }
func NewStorage ¶
func NewStorageMock ¶
func NewStorageMock() Storage
Click to show internal directories.
Click to hide internal directories.