Documentation ¶
Index ¶
- Variables
- type MemeService
- func (ms *MemeService) DeleteMeme(id uuid.UUID) error
- func (ms *MemeService) GetMemeById(id uuid.UUID) (domain.Meme, error)
- func (ms *MemeService) GetMemes() ([]domain.Meme, error)
- func (ms *MemeService) UpdateMeme(id uuid.UUID, title string, userId uuid.UUID) error
- func (ms *MemeService) UploadMeme(title, contentType string, file io.Reader, userId uuid.UUID) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorInvalidContentType = errors.New("invalid content type")
View Source
var ErrorInvalidCredentials = errors.New("invalid credentials")
View Source
var ErrorUserNotFound = errors.New("user not found")
Functions ¶
This section is empty.
Types ¶
type MemeService ¶
type MemeService struct { Config memeConfig.Config Repository domain.MemeRepository }
func (*MemeService) DeleteMeme ¶
func (ms *MemeService) DeleteMeme(id uuid.UUID) error
func (*MemeService) GetMemeById ¶
func (*MemeService) UpdateMeme ¶
func (*MemeService) UploadMeme ¶
type UserService ¶
type UserService struct { Config userConfig.Config Repository domain.UserRepository }
func (*UserService) CheckUsername ¶
func (us *UserService) CheckUsername(username string) (bool, error)
func (*UserService) Login ¶
func (us *UserService) Login(username, password string) (domain.User, error)
func (*UserService) Register ¶
func (us *UserService) Register(username, name, password string) error
Click to show internal directories.
Click to hide internal directories.