Documentation ¶
Index ¶
- type Auth
- func (s *Auth) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
- func (s *Auth) Logout(ctx context.Context) (any, error)
- func (a *Auth) RefreshToken(ctx context.Context, tokenStr string) (*dto.RespToken, error)
- func (s *Auth) Register(ctx context.Context, creds dto.Credentials) (*schema.User, error)
- func (s *Auth) Setup(ctx context.Context, deps ...gobs.IService) error
- func (s *Auth) SignIn(ctx context.Context, creds dto.Credentials) (*dto.RespToken, error)
- type JWTSecret
- type JwtToken
- func (a *JwtToken) ComposeToken(userID string) (string, time.Time, error)
- func (a *JwtToken) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
- func (a *JwtToken) RefreshToken(tokenStr string) (string, time.Time, error)
- func (a *JwtToken) Setup(ctx context.Context, deps ...gobs.IService) error
- func (a *JwtToken) VerifyToken(tokenStr string) (claims jwt.RegisteredClaims, err error)
- type UserRepository
- func (u *UserRepository) AddUser(ctx context.Context, user schema.UserCreateParams) (res *schema.User, err error)
- func (u *UserRepository) GetUserForSignIn(ctx context.Context, email string) (*schema.User, error)
- func (u *UserRepository) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
- func (u *UserRepository) Setup(ctx context.Context, deps ...gobs.IService) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) RefreshToken ¶
type JwtToken ¶
type JwtToken struct {
// contains filtered or unexported fields
}
func (*JwtToken) ComposeToken ¶
func (*JwtToken) RefreshToken ¶
func (*JwtToken) VerifyToken ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) AddUser ¶
func (u *UserRepository) AddUser(ctx context.Context, user schema.UserCreateParams) (res *schema.User, err error)
func (*UserRepository) GetUserForSignIn ¶
func (*UserRepository) Init ¶
func (u *UserRepository) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
Init implements gobs.IServiceInit.
Click to show internal directories.
Click to hide internal directories.