service

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 (a *AlbumService) CreateAlbum(userUuid uuid.UUID, album *model.NewAlbum) *model.Album

func (*AlbumService) GetAlbum

func (a *AlbumService) GetAlbum(albumUuid uuid.UUID) (*model.Album, error)

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 (i *ImageService) CreateNewImageForAlbum(userUuid uuid.UUID, albumUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)

func (*ImageService) CreateNewLivestreamImage

func (i *ImageService) CreateNewLivestreamImage(userUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)

func (*ImageService) CreateNewProfileImage

func (i *ImageService) CreateNewProfileImage(userUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)

func (*ImageService) GetAllImagesForAlbum

func (i *ImageService) GetAllImagesForAlbum(albumUuid uuid.UUID) []*model.Image

func (*ImageService) GetImage

func (i *ImageService) GetImage(imageUuid uuid.UUID) (*model.Image, error)

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

func (u *S3UploadService) UploadImage(file multipart.File, filename string, filesize int64) (key string, err error)

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 (t *TestService) CreateNewProfileImage(userUuid uuid.UUID, file multipart.File, filename string, filesize int64) (imageModel *model.Image, err error)

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

func (t *TestUploadService) UploadImage(file multipart.File, filename string, filesize int64) (key string, err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL