Documentation ¶
Index ¶
- type Database
- type ImageRepository
- func (r *ImageRepository) Get(ctx context.Context, id string) (image *model.Image, err error)
- func (r *ImageRepository) GetMany(ctx context.Context, ids []string) (images []*model.Image, err error)
- func (r *ImageRepository) List(ctx context.Context) (images []*model.Image, err error)
- func (r *ImageRepository) Save(ctx context.Context, image *model.Image) error
- type MultipartParser
- type Redis
- func (r *Redis) Get(ctx context.Context, id string) (value []byte, err error)
- func (r *Redis) GetMany(ctx context.Context, ids []string) (values [][]byte, err error)
- func (r *Redis) List(ctx context.Context) (values [][]byte, err error)
- func (r *Redis) Save(ctx context.Context, id string, value []byte) error
- type S3Storage
- type TagRepository
- func (r *TagRepository) Get(ctx context.Context, id string) (tag *model.Tag, err error)
- func (r *TagRepository) GetMany(ctx context.Context, ids []string) (tags []*model.Tag, err error)
- func (r *TagRepository) List(ctx context.Context) (tags []*model.Tag, err error)
- func (r *TagRepository) Save(ctx context.Context, tag *model.Tag) error
- type UserRepository
- func (r *UserRepository) Get(ctx context.Context, id string) (user *model.User, err error)
- func (r *UserRepository) GetMany(ctx context.Context, ids []string) (users []*model.User, err error)
- func (r *UserRepository) List(ctx context.Context) (users []*model.User, err error)
- func (r *UserRepository) Save(ctx context.Context, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageRepository ¶
type ImageRepository struct {
// contains filtered or unexported fields
}
func NewImageRepository ¶
func NewImageRepository(database Database) *ImageRepository
type MultipartParser ¶
type MultipartParser struct {
// contains filtered or unexported fields
}
func NewMultipartParser ¶
func NewMultipartParser(maxMem int64) *MultipartParser
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
func NewS3Storage ¶
type TagRepository ¶
type TagRepository struct {
// contains filtered or unexported fields
}
func NewTagRepository ¶
func NewTagRepository(database Database) *TagRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(database Database) *UserRepository
Click to show internal directories.
Click to hide internal directories.