Documentation ¶
Index ¶
- type Auth
- type AuthConfig
- type Claims
- type Depository
- func (s *Depository) CheckPass(ctx context.Context, req param.LoginRequest) (param.PassCheckRespone, error)
- func (s *Depository) CreateAccount(ctx context.Context, req param.CreateAccountRequest) (param.CreateAccountResponse, error)
- func (s *Depository) DeleteAccount(ctx context.Context, req param.DeleteAccountRequest) error
- func (s *Depository) GetAccountByNumber(ctx context.Context, req param.GetAccountByNumberRequest) (param.GetAccountByNumberResponse, error)
- func (s *Depository) TransferAmount(ctx context.Context, req param.TransferAmountRequest) (param.TransferAmountResponse, 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 NewAuth ¶
func NewAuth(cfg AuthConfig) Auth
func (Auth) CreateAccessToken ¶
func (a Auth) CreateAccessToken(req param.LoginRequest) (param.LoginResponse, error)
func (Auth) CreateRefreshToken ¶
func (a Auth) CreateRefreshToken(req param.LoginRequest) (param.LoginResponse, error)
type AuthConfig ¶
type Depository ¶
type Depository struct {
// contains filtered or unexported fields
}
func NewDepository ¶
func NewDepository(r repository.Repository) *Depository
func (*Depository) CheckPass ¶
func (s *Depository) CheckPass(ctx context.Context, req param.LoginRequest) (param.PassCheckRespone, error)
TODO: should moved to auth service
func (*Depository) CreateAccount ¶
func (s *Depository) CreateAccount(ctx context.Context, req param.CreateAccountRequest) (param.CreateAccountResponse, error)
func (*Depository) DeleteAccount ¶
func (s *Depository) DeleteAccount(ctx context.Context, req param.DeleteAccountRequest) error
func (*Depository) GetAccountByNumber ¶
func (s *Depository) GetAccountByNumber(ctx context.Context, req param.GetAccountByNumberRequest) (param.GetAccountByNumberResponse, error)
func (*Depository) TransferAmount ¶
func (s *Depository) TransferAmount(ctx context.Context, req param.TransferAmountRequest) (param.TransferAmountResponse, error)
Click to show internal directories.
Click to hide internal directories.