code

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 14 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) ([]auth.Identity, 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 TestAES added in v1.0.42

type TestAES struct {
	KeysMan keys.Manager //starter:inject("#")
	KeysSer keys.Service //starter:inject("#")
	Logger  vlog.Logger  //starter:inject("#")
}

TestAES ...

func (*TestAES) Life added in v1.0.42

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

Life ...

type TestCom

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

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

}

TestCom ...

func (*TestCom) Life

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

Life ...

type TestRSA added in v1.0.42

type TestRSA struct {
	KeysMan keys.Manager //starter:inject("#")
	KeysSer keys.Service //starter:inject("#")
	Logger  vlog.Logger  //starter:inject("#")
}

TestRSA ...

func (*TestRSA) Life added in v1.0.42

func (inst *TestRSA) 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 ...

type TestUUID added in v1.0.21

type TestUUID struct {
	Ser    random.UUIDService //starter:inject("#")
	Logger vlog.Logger        //starter:inject("#")

}

TestUUID ...

func (*TestUUID) Life added in v1.0.21

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

Life ...

Jump to

Keyboard shortcuts

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