Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRepo ¶
type FakeRepo struct {
Err error
ErrOnImageExists bool
ErrOnCollectionExists bool
NextImage *im.BaseImage
PreviousImage *im.BaseImage
}
func (*FakeRepo) CollectionMustExist ¶
func (*FakeRepo) GetAdjacent ¶
func (r *FakeRepo) GetAdjacent(id im.ImageId, criteria ScrollingCriteria, d ScrollingDirection) (*im.BaseImage, error)
type ScrollingCriteria ¶
type ScrollingCriteria struct {
Collection *string
}
func NewCriteria ¶
func NewCriteria(opts ...Option) ScrollingCriteria
type ScrollingDirection ¶
type ScrollingDirection int
const ( ScrollNext ScrollingDirection = iota ScrollPrevious )
Click to show internal directories.
Click to hide internal directories.