internal

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: 13 Imported by: 0

Documentation

Index

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 ...

func (*AuthService2) Handle added in v1.0.14

func (inst *AuthService2) Handle(c context.Context, a *rbac.AuthDTO) (*rbac.AuthDTO, error)

Handle 处理验证、授权请求

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

func (*JWTService) Decode

func (inst *JWTService) Decode(t jwt.Text) (*jwt.Token, error)

Decode ...

func (*JWTService) Encode

func (inst *JWTService) Encode(o *jwt.Token) (jwt.Text, error)

Encode ...

func (*JWTService) GetDTO

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

GetDTO ...

func (*JWTService) GetText

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

GetText ...

func (*JWTService) SetDTO

func (inst *JWTService) SetDTO(c context.Context, o *jwt.Token) error

SetDTO ...

func (*JWTService) SetText

func (inst *JWTService) SetText(c context.Context, t jwt.Text) error

SetText ...

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 ...

Jump to

Keyboard shortcuts

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