Documentation ¶
Index ¶
- type AlbumService
- type ConsumerService
- type ImageService
- func (i *ImageService) CreateNewImageForAlbum(userUuid uuid.UUID, albumUuid uuid.UUID, file multipart.File, filename string, ...) (imageModel *model.Image, err error)
- func (i *ImageService) CreateNewLivestreamImage(userUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)
- func (i *ImageService) CreateNewProfileImage(userUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)
- func (i *ImageService) GetAllImagesForAlbum(albumUuid uuid.UUID) []*model.Image
- func (i *ImageService) GetImage(imageUuid uuid.UUID) (*model.Image, error)
- type S3UploadService
- type TestService
- type TestUploadService
- type UploadService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumService ¶
type AlbumService struct {
// contains filtered or unexported fields
}
func CreateAlbumService ¶
func CreateAlbumService(albumRepository *repository.AlbumRepository, userRepository *repository.UserRepository) *AlbumService
func CreateDefaultAlbumService ¶
func CreateDefaultAlbumService() *AlbumService
func (*AlbumService) CreateAlbum ¶
func (*AlbumService) GetAlbumsForUser ¶
func (a *AlbumService) GetAlbumsForUser(username string) ([]*model.Album, error)
type ConsumerService ¶ added in v0.1.5
type ConsumerService struct {
// contains filtered or unexported fields
}
func CreateConsumerService ¶ added in v0.1.5
func CreateConsumerService() *ConsumerService
func (*ConsumerService) InitializeAndRunLoop ¶ added in v0.1.5
func (c *ConsumerService) InitializeAndRunLoop()
type ImageService ¶
type ImageService struct {
// contains filtered or unexported fields
}
func CreateImageService ¶
func CreateImageService() *ImageService
func CreateTestImageService ¶ added in v0.1.5
func CreateTestImageService() *ImageService
func (*ImageService) CreateNewImageForAlbum ¶
func (*ImageService) CreateNewLivestreamImage ¶
func (*ImageService) CreateNewProfileImage ¶
func (*ImageService) GetAllImagesForAlbum ¶
func (i *ImageService) GetAllImagesForAlbum(albumUuid uuid.UUID) []*model.Image
type S3UploadService ¶ added in v0.1.7
type S3UploadService struct {
// contains filtered or unexported fields
}
func CreateS3UploadService ¶ added in v0.1.7
func CreateS3UploadService() *S3UploadService
func (*S3UploadService) UploadImage ¶ added in v0.1.7
type TestService ¶ added in v0.1.5
type TestService struct {
// contains filtered or unexported fields
}
func CreateTestService ¶ added in v0.1.5
func CreateTestService() *TestService
func (*TestService) CreateNewProfileImage ¶ added in v0.1.5
func (*TestService) UpsertUser ¶ added in v0.1.5
func (t *TestService) UpsertUser(userModel *model.User)
type TestUploadService ¶ added in v0.1.7
type TestUploadService struct{}
func (*TestUploadService) UploadImage ¶ added in v0.1.7
type UploadService ¶
type UploadService interface {
UploadImage(file multipart.File, filename string, filesize int64) (key string, err error)
}
func CreateTestUploadService ¶ added in v0.1.7
func CreateTestUploadService() UploadService
type UserService ¶ added in v0.1.5
type UserService struct {
// contains filtered or unexported fields
}
func CreateTestUserService ¶ added in v0.1.5
func CreateTestUserService() *UserService
func CreateUserService ¶ added in v0.1.5
func CreateUserService() *UserService
func (*UserService) UpsertUser ¶ added in v0.1.5
func (u *UserService) UpsertUser(userModel *model.User)
Click to show internal directories.
Click to hide internal directories.