auth

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthDb

type AuthDb struct {
	// contains filtered or unexported fields
}

func NewAuthDb

func NewAuthDb(dbh DbHandler) *AuthDb

func (*AuthDb) Agent

func (a *AuthDb) Agent(agentUuid string) (uint, *proto.AuthResponse, error)

Agent exists and is active?

type AuthHandler

type AuthHandler interface {
	Agent(agentUuid string) (uint, *proto.AuthResponse, error)
}

type DbHandler

type DbHandler interface {
	GetAgentId(agentId string) (uint, error)
}

type MySQLHandler

type MySQLHandler struct {
	// contains filtered or unexported fields
}

func NewMySQLHandler

func NewMySQLHandler(dbm db.Manager) *MySQLHandler

func (*MySQLHandler) GetAgentId

func (h *MySQLHandler) GetAgentId(uuid string) (uint, error)

Jump to

Keyboard shortcuts

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