util

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(addr string, token string) (*api.Client, error)

func RegisterPacketDecode

func RegisterPacketDecode(id uint32, value bool)

Types

type Authentication

type Authentication interface {
	Authenticate(login.IdentityData, string) bool
}

type SecretBasedAuthentication

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

func NewSecretBasedAuthentication

func NewSecretBasedAuthentication(secret string) *SecretBasedAuthentication

func (*SecretBasedAuthentication) Authenticate

func (authentication *SecretBasedAuthentication) Authenticate(_ login.IdentityData, token string) bool

Jump to

Keyboard shortcuts

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