Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserUsecase, NewSessionUsecase, NewTokenUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type SessionRepo ¶
type SessionUsecase ¶
type SessionUsecase struct {
// contains filtered or unexported fields
}
func NewSessionUsecase ¶
func NewSessionUsecase(repo SessionRepo, logger log.Logger) *SessionUsecase
func (*SessionUsecase) GetSession ¶
func (*SessionUsecase) SetSession ¶
func (uc *SessionUsecase) SetSession(ctx context.Context, s Session) error
type TokenPayload ¶
type TokenUsecase ¶
type TokenUsecase struct {
// contains filtered or unexported fields
}
func NewTokenUsecase ¶
func NewTokenUsecase(c *conf.Token) *TokenUsecase
func (*TokenUsecase) CreateToken ¶
func (*TokenUsecase) ValidateToken ¶
func (uc *TokenUsecase) ValidateToken(signedToken string) error
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase(repo UserRepo, logger log.Logger) *UserUsecase
func (*UserUsecase) CreateUser ¶
func (uc *UserUsecase) CreateUser(ctx context.Context, r *v1.CreateUserRequest) (*v1.User, error)
func (*UserUsecase) GetUserByEmail ¶
func (uc *UserUsecase) GetUserByEmail(ctx context.Context, r *v1.GetUserByEmailRequest) (*v1.GetUserByEmailReply, error)
Click to show internal directories.
Click to hide internal directories.