api

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(sessions *session.Registry, logger *logrus.Logger, authentication Authentication) *API

func (*API) Accept

func (a *API) Accept() error

func (*API) Close

func (a *API) Close() error

func (*API) Listen

func (a *API) Listen(addr string) error

type Authentication added in v0.0.4

type Authentication interface {
	Authenticate(token string) bool
}

type SecretBasedAuthentication added in v0.0.5

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

func NewSecretBasedAuthentication added in v0.0.5

func NewSecretBasedAuthentication(secret string) *SecretBasedAuthentication

func (*SecretBasedAuthentication) Authenticate added in v0.0.5

func (authentication *SecretBasedAuthentication) Authenticate(token string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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