Documentation
¶
Index ¶
- type MockAuth
- type MockTokenAdapter
- func (inst *MockTokenAdapter) Accept(c context.Context) bool
- func (inst *MockTokenAdapter) GetDTO(c context.Context) (*jwt.Token, error)
- func (inst *MockTokenAdapter) GetText(c context.Context) (jwt.Text, error)
- func (inst *MockTokenAdapter) ListRegistrations() []*jwt.Registration
- func (inst *MockTokenAdapter) SetDTO(c context.Context, o1 *jwt.Token) error
- func (inst *MockTokenAdapter) SetText(c context.Context, t1 jwt.Text) error
- type TestCom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth 是虚拟的身份验证器
func (*MockAuth) Authenticate ¶
func (*MockAuth) ListRegistrations ¶
func (inst *MockAuth) ListRegistrations() []*auth.Registration
type MockTokenAdapter ¶
type MockTokenAdapter struct {
Service jwt.Service //starter:inject("#")
Logger vlog.Logger //starter:inject("#")
// contains filtered or unexported fields
}
MockTokenAdapter ...
func (*MockTokenAdapter) Accept ¶
func (inst *MockTokenAdapter) Accept(c context.Context) bool
Accept ...
func (*MockTokenAdapter) ListRegistrations ¶
func (inst *MockTokenAdapter) ListRegistrations() []*jwt.Registration
ListRegistrations ...
type TestCom ¶
type TestCom struct {
AuthSer rbac.AuthService //starter:inject("#")
SessionSer rbac.SessionService //starter:inject("#")
UserSer rbac.UserService //starter:inject("#")
PermissionSer rbac.PermissionService //starter:inject("#")
}
TestCom ...
Click to show internal directories.
Click to hide internal directories.