util

package
v1.1.4-0...-19cf393 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_KEY = "au"
)

Variables

View Source
var (
	InvalidAuthKey        = errors.New("Invalid Authentication Key")
	InvalidTokenFormatErr = errors.New("Invalid token format")
	MissingKeyErr         = errors.New("No Authentication Key provided")
)
View Source
var (
	Running   = State(0)
	Booked    = State(1) // todo: will be added
	Suspended = State(2)
	Closed    = State(3)
	Error     = State(4)
)

Functions

func InitilizegRPCServer

func InitilizegRPCServer(conf *model.Config) (*server, error)

func NewConfigFromFile

func NewConfigFromFile(path string) (*model.Config, error)

Types

type Authenticator

type Authenticator interface {
	AuthenticateContext(context.Context) error
}

func NewAuthenticator

func NewAuthenticator(Skey, AKey string) Authenticator

type State

type State int32

Jump to

Keyboard shortcuts

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