Documentation ¶
Index ¶
- func DecodeRequestToNewSession(r *http.Response) *model.Session
- type AlbumService
- type AuthService
- func (a *AuthService) CreateSession(newSession model.NewSession) (*model.Session, error)
- func (a *AuthService) DoWithValidSession(w http.ResponseWriter, r *http.Request, ...)
- func (a *AuthService) DoWithValidSessionAndUser(w http.ResponseWriter, r *http.Request, userUuid uuid.UUID, ...)
- func (a *AuthService) GetSession(sessionId string) (*model.Session, error)
- 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 UploadService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func CreateDefaultAuthService ¶
func CreateDefaultAuthService() *AuthService
func (*AuthService) CreateSession ¶
func (a *AuthService) CreateSession(newSession model.NewSession) (*model.Session, error)
func (*AuthService) DoWithValidSession ¶
func (a *AuthService) DoWithValidSession(w http.ResponseWriter, r *http.Request, doAction func(session *model.Session) (interface{}, error))
func (*AuthService) DoWithValidSessionAndUser ¶
func (a *AuthService) DoWithValidSessionAndUser(w http.ResponseWriter, r *http.Request, userUuid uuid.UUID, doAction func() (interface{}, error))
func (*AuthService) GetSession ¶
func (a *AuthService) GetSession(sessionId string) (*model.Session, error)
type ImageService ¶
type ImageService struct {
// contains filtered or unexported fields
}
func CreateDefaultImageService ¶
func CreateDefaultImageService() *ImageService
func CreateImageService ¶
func CreateImageService(imageRepository *repository.ImageRepository, albumRepository *repository.AlbumRepository, userRepository *repository.UserRepository, uploadService *UploadService, kafkaProducer *kafka.Producer) *ImageService
func (*ImageService) CreateNewImageForAlbum ¶
func (*ImageService) CreateNewLivestreamImage ¶
func (*ImageService) CreateNewProfileImage ¶
func (*ImageService) GetAllImagesForAlbum ¶
func (i *ImageService) GetAllImagesForAlbum(albumUuid uuid.UUID) []*model.Image
type UploadService ¶
type UploadService struct {
// contains filtered or unexported fields
}
func CreateDefaultUploadService ¶
func CreateDefaultUploadService() *UploadService
func CreateUploadService ¶
func CreateUploadService(s3Client *s3.S3, bucket string) *UploadService
func (*UploadService) UploadImage ¶
Click to show internal directories.
Click to hide internal directories.