Documentation
¶
Index ¶
- type DaemonService
- func (s *DaemonService) ById(id uuid.UUID) (*model.Daemon, error)
- func (s *DaemonService) ExistsById(id uuid.UUID) bool
- func (s *DaemonService) HeartBeat(daemon *model.Daemon) error
- func (s *DaemonService) List(owner string) []*model.Daemon
- func (s *DaemonService) Register(newDaemon *model.Daemon) (uuid.UUID, uint32, error)
- func (s *DaemonService) Watch()
- type PhotoService
- func (s *PhotoService) ContentByHash(ctx context.Context, daemon *model.Daemon, hash string) ([]byte, string, error)
- func (s *PhotoService) List(ctx context.Context, daemon *model.Daemon, offset uint32, limit uint32) ([]*model.Photo, uint32, error)
- func (s *PhotoService) ThumbnailByHash(ctx context.Context, daemon *model.Daemon, hash string, width uint32, ...) ([]byte, string, error)
- type PhotoServiceCaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonService ¶
type DaemonService struct {
// contains filtered or unexported fields
}
func NewDaemonService ¶
func NewDaemonService(c PhotoServiceCaller) DaemonService
func (*DaemonService) ExistsById ¶ added in v0.4.0
func (s *DaemonService) ExistsById(id uuid.UUID) bool
func (*DaemonService) List ¶ added in v0.3.0
func (s *DaemonService) List(owner string) []*model.Daemon
func (*DaemonService) Watch ¶
func (s *DaemonService) Watch()
type PhotoService ¶
type PhotoService struct {
// contains filtered or unexported fields
}
func NewPhotoService ¶
func NewPhotoService(c PhotoServiceCaller) PhotoService
func (*PhotoService) ContentByHash ¶
type PhotoServiceCaller ¶
type PhotoServiceCaller interface { List(ctx context.Context, d *model.Daemon, page uint32, pageSize uint32) ([]*model.Photo, uint32, error) Exists(ctx context.Context, d *model.Daemon, hash string) (bool, error) ContentByHash(ctx context.Context, d *model.Daemon, hash string) ([]byte, string, error) ThumbnailByHash(ctx context.Context, d *model.Daemon, hash string, width uint32, height uint32) ([]byte, string, error) }
Click to show internal directories.
Click to hide internal directories.