manager

package
v0.13.0-alpha.65 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 18 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
	RegistryDAO *dao.Registry

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

func NewManager

func NewManager(key *rsa.PrivateKey, adminToken string, db *sql.DB) *Manager

func (*Manager) GetTokenWithUser

func (m *Manager) GetTokenWithUser(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