Documentation
¶
Index ¶
- type AuthService1
- type AuthService2
- type JWTService
- func (inst *JWTService) Decode(t jwt.Text) (*jwt.Token, error)
- func (inst *JWTService) Encode(o *jwt.Token) (jwt.Text, error)
- func (inst *JWTService) GetDTO(c context.Context) (*jwt.Token, error)
- func (inst *JWTService) GetText(c context.Context) (jwt.Text, error)
- func (inst *JWTService) SetDTO(c context.Context, o *jwt.Token) error
- func (inst *JWTService) SetText(c context.Context, t jwt.Text) error
- type TableReg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService1 ¶
type AuthService1 struct {
RegistryList []auth.Registry //starter:inject(".")
// contains filtered or unexported fields
}
AuthService1 ...
func (*AuthService1) Authenticate ¶
func (inst *AuthService1) Authenticate(a auth.Authentication) (*auth.Result, error)
Authenticate 验证
func (*AuthService1) Authorize ¶
func (inst *AuthService1) Authorize(a auth.Authorization) error
Authorize 授权
func (*AuthService1) Login ¶
func (inst *AuthService1) Login(c context.Context, a1 auth.Authentication) (*auth.Result, error)
Login 登录
type AuthService2 ¶
type AuthService2 struct {
Servic1 auth.Service //starter:inject("#")
// contains filtered or unexported fields
}
AuthService2 ...
type JWTService ¶
type JWTService struct {
RegistryList []jwt.Registry //starter:inject(".")
// contains filtered or unexported fields
}
JWTService 实现 jwt.Service
type TableReg ¶
type TableReg struct {
// contains filtered or unexported fields
}
TableReg ...
func (*TableReg) ListTableRegistrations ¶
func (inst *TableReg) ListTableRegistrations() []*libgorm.TableRegistration
ListTableRegistrations ...
Click to show internal directories.
Click to hide internal directories.