Documentation
¶
Index ¶
- Constants
- Variables
- type Auth
- func (a Auth) IdentityByCookie(cookie *http.Cookie) (string, error)
- func (a Auth) Init() error
- func (a Auth) Login(ctx context.Context, r *models.RequestLogin)
- func (a *Auth) NotifyRegistered(ctx context.Context, customer *customer.Customer, ...) error
- func (a Auth) Register(ctx context.Context, rm *models.RequestRegister) (*customer.Customer, error)
- type Claims
Constants ¶
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
TokenExpired time.Duration
SecretKey string
Logger *alog.Alog
Storage models.Storable
Cache models.Cachable
// contains filtered or unexported fields
}
type Claims ¶
type Claims struct {
jwt.RegisteredClaims
SessionUID string
}
Source Files
¶
- auth.go
- defines.go
- login.go
- notifies.go
- register.go
Click to show internal directories.
Click to hide internal directories.