manager

package
v0.13.0-alpha.39 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	UserDAO  *dao.User
	LoginDAO *dao.Login
	TokenDAO *dao.Token

	UserService     *service.UserService
	UserController  *controller.UserController
	TokenService    *service.TokenService
	TokenController *controller.TokenController
	// contains filtered or unexported fields
}

func NewManager

func NewManager(key *rsa.PrivateKey, db *sql.DB, cacheTTL time.Duration) *Manager

func (*Manager) GetToken

func (m *Manager) GetToken(ctx context.Context, userinfo *url.Userinfo, t *token.Token) (token.Attribute, error)

func (*Manager) InitTable

func (m *Manager) InitTable(ctx context.Context)

func (*Manager) Register

func (m *Manager) Register(container *restful.Container)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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