local

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Interface string `yaml:"interface"`
	IPAddress string `yaml:"-"`
	Port      uint32 `yaml:"port" default:"8812"`
	Token     string `yaml:"token"`
}

func (*Configuration) Check

func (c *Configuration) Check() error

type Server

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

func New

func New(logger *log.Entry, config *Configuration, userCache *cache.Cache, upstreamClient *client.Client) (*Server, error)

func (*Server) Configure

func (s *Server) Configure() error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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