Documentation ¶
Index ¶
- type Provider
- func (p *Provider) Get(ctx context.Context, id string) (i *database.Image, err error)
- func (p *Provider) GetRandom(ctx context.Context) (i *database.Image, err error)
- func (p *Provider) GetRandomWithSeed(ctx context.Context, seed int64) (i *database.Image, err error)
- func (p *Provider) List(ctx context.Context, offset, limit int) ([]database.Image, error)
- func (p *Provider) ListAll(ctx context.Context) ([]database.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements a file-based image storage
func (*Provider) GetRandomWithSeed ¶
func (p *Provider) GetRandomWithSeed(ctx context.Context, seed int64) (i *database.Image, err error)
GetRandomWithSeed returns a random image ID based on the given seed
Click to show internal directories.
Click to hide internal directories.