Documentation ¶
Index ¶
- Constants
- type AuthUsecase
- type FileUsecase
- type JWTClaim
- type JWTUser
- type UserUsecase
- func (u *UserUsecase) CreateUser(ctx context.Context, firstName string, lastName string, email string, ...) (*domain.User, error)
- func (u *UserUsecase) DeleteUserByID(ctx context.Context, id string) error
- func (u *UserUsecase) GetAllUsers(ctx context.Context) ([]*domain.User, error)
- func (u *UserUsecase) GetUserByID(ctx context.Context, id string) (*domain.User, error)
Constants ¶
View Source
const (
MAX_FILE_SIZE = 1024 * 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthUsecase ¶
type AuthUsecase struct {
// contains filtered or unexported fields
}
func NewAuthUsecase ¶
func NewAuthUsecase(userStore repository.UserStore) *AuthUsecase
type FileUsecase ¶
type FileUsecase struct {
// contains filtered or unexported fields
}
func NewFileUsecase ¶
func NewFileUsecase(fileStore repository.FileStore, fileAccessStore repository.FileAccessStore, userStore repository.UserStore, s3Client *s3.Client) *FileUsecase
func (*FileUsecase) DownloadFile ¶
func (u *FileUsecase) DownloadFile(ctx context.Context, hash string, secret string) (*s3.GetObjectOutput, string, error)
func (*FileUsecase) UploadFile ¶
func (u *FileUsecase) UploadFile(ctx context.Context, secret string, multiPartFile *multipart.FileHeader) (string, error)
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase(userStore repository.UserStore, fileStore repository.FileStore) *UserUsecase
func (*UserUsecase) CreateUser ¶
func (*UserUsecase) DeleteUserByID ¶
func (u *UserUsecase) DeleteUserByID(ctx context.Context, id string) error
func (*UserUsecase) GetAllUsers ¶
func (*UserUsecase) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.