Documentation
¶
Index ¶
- type AuthService1
- type AuthService2
- type DefaultRandomService
- func (inst *DefaultRandomService) NextBytes(length int) []byte
- func (inst *DefaultRandomService) NextInt() int
- func (inst *DefaultRandomService) NextInt64() int64
- func (inst *DefaultRandomService) NextString(length int) string
- func (inst *DefaultRandomService) Reader() io.Reader
- func (inst *DefaultRandomService) Source() random.Source
- type DefaultRandomSource
- 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 SessionServiceImpl
- 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) Handle ¶ added in v1.0.14
func (inst *AuthService1) Handle(r auth.Authentication) error
Handle 登录
type AuthService2 ¶
type AuthService2 struct {
Servic1 auth.Service //starter:inject("#")
// contains filtered or unexported fields
}
AuthService2 ...
type DefaultRandomService ¶ added in v1.0.9
type DefaultRandomService struct {
Providers []random.ProviderRegistry //starter:inject(".")
// contains filtered or unexported fields
}
DefaultRandomService ... 随机数服务
func (*DefaultRandomService) NextBytes ¶ added in v1.0.9
func (inst *DefaultRandomService) NextBytes(length int) []byte
NextBytes ...
func (*DefaultRandomService) NextInt ¶ added in v1.0.9
func (inst *DefaultRandomService) NextInt() int
NextInt ...
func (*DefaultRandomService) NextInt64 ¶ added in v1.0.9
func (inst *DefaultRandomService) NextInt64() int64
NextInt64 ...
func (*DefaultRandomService) NextString ¶ added in v1.0.9
func (inst *DefaultRandomService) NextString(length int) string
NextString ...
func (*DefaultRandomService) Reader ¶ added in v1.0.9
func (inst *DefaultRandomService) Reader() io.Reader
Reader ...
func (*DefaultRandomService) Source ¶ added in v1.0.9
func (inst *DefaultRandomService) Source() random.Source
Source ...
type DefaultRandomSource ¶ added in v1.0.9
type DefaultRandomSource struct {
// contains filtered or unexported fields
}
DefaultRandomSource ... 默认随机源
func (*DefaultRandomSource) Read ¶ added in v1.0.9
func (inst *DefaultRandomSource) Read(p []byte) (n int, err error)
func (*DefaultRandomSource) Reader ¶ added in v1.0.9
func (inst *DefaultRandomSource) Reader() io.Reader
Reader ...
func (*DefaultRandomSource) Registration ¶ added in v1.0.9
func (inst *DefaultRandomSource) Registration() *random.ProviderRegistration
Registration ...
func (*DefaultRandomSource) Source ¶ added in v1.0.9
func (inst *DefaultRandomSource) Source() random.Source
Source ...
type JWTService ¶
type JWTService struct {
RegistryList []jwt.Registry //starter:inject(".")
// contains filtered or unexported fields
}
JWTService 实现 jwt.Service
type SessionServiceImpl ¶ added in v1.0.14
type SessionServiceImpl struct {
RegistryList []rbac.SessionRegistry //starter:inject(".")
// contains filtered or unexported fields
}
SessionServiceImpl ...
func (*SessionServiceImpl) GetCurrent ¶ added in v1.0.14
func (inst *SessionServiceImpl) GetCurrent(c context.Context) (*rbac.SessionDTO, error)
GetCurrent ...
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.