code

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (inst *MockAuth) Authenticate(a auth.Authentication) error

Authenticate ...

func (*MockAuth) ListRegistrations

func (inst *MockAuth) ListRegistrations() []*auth.Registration

ListRegistrations ...

func (*MockAuth) Support

func (inst *MockAuth) Support(a auth.Authentication) bool

Support ...

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) GetDTO

func (inst *MockTokenAdapter) GetDTO(c context.Context) (*jwt.Token, error)

GetDTO ...

func (*MockTokenAdapter) GetText

func (inst *MockTokenAdapter) GetText(c context.Context) (jwt.Text, error)

GetText ...

func (*MockTokenAdapter) ListRegistrations

func (inst *MockTokenAdapter) ListRegistrations() []*jwt.Registration

ListRegistrations ...

func (*MockTokenAdapter) SetDTO

func (inst *MockTokenAdapter) SetDTO(c context.Context, o1 *jwt.Token) error

SetDTO ...

func (*MockTokenAdapter) SetText

func (inst *MockTokenAdapter) SetText(c context.Context, t1 jwt.Text) error

SetText ...

type TestCom

type TestCom struct {
	AuthSer    rbac.AuthService    //starter:inject("#")
	SessionSer rbac.SessionService //starter:inject("#")

	PermissionSer rbac.PermissionService //--starter:inject("#")
	UserSer       rbac.UserService       //--starter:inject("#")

}

TestCom ...

func (*TestCom) Life

func (inst *TestCom) Life() *application.Life

Life ...

type TestRandom added in v1.0.9

type TestRandom struct {
	Rand   random.Service //starter:inject("#")
	Logger vlog.Logger    //starter:inject("#")

}

TestRandom ...

func (*TestRandom) Life added in v1.0.9

func (inst *TestRandom) Life() *application.Life

Life ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL