Documentation ¶
Index ¶
- type Filter
- type Item
- type Repository
- type Service
- func (s *Service) Compression(ctx context.Context, param *db.ImageCompression) error
- func (s *Service) Create(ctx context.Context, item *Item) (*uuid.UUID, error)
- func (s *Service) Delete(ctx context.Context, id *uuid.UUID) error
- func (s *Service) Get(ctx context.Context, filter *Filter) (*Item, error)
- func (s *Service) List(ctx context.Context, filter *Filter) (*map[uuid.UUID]Item, error)
- func (s *Service) MaxSortOrder(ctx context.Context) (*uint64, error)
- func (s *Service) Patch(ctx context.Context, id *uuid.UUID, fields *map[string]interface{}) error
- func (s *Service) TableIndexCount(ctx context.Context) (*uint64, error)
- func (s *Service) Update(ctx context.Context, item *Item) error
- func (s *Service) UpdatedAt(ctx context.Context, id *uuid.UUID) (*time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter = db.ImageFilter
type Repository ¶
type Repository interface { Get(context.Context, *Filter) (*Item, error) List(context.Context, *Filter) (*map[uuid.UUID]Item, error) Create(context.Context, *Item) (*uuid.UUID, error) Update(context.Context, *Item) error Patch(context.Context, *uuid.UUID, *map[string]interface{}) error UpdatedAt(context.Context, *uuid.UUID) (*time.Time, error) TableIndexCount(context.Context) (*uint64, error) MaxSortOrder(context.Context) (*uint64, error) Delete(context.Context, *uuid.UUID) error }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Compression ¶
func (*Service) TableIndexCount ¶
Click to show internal directories.
Click to hide internal directories.