server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpParameters

type HttpParameters struct {
	Address string `yaml:"address"`
}

type Parameters

type Parameters struct {
	Http HttpParameters `yaml:"http"`
}

func (*Parameters) Validate

func (p *Parameters) Validate() error

type Server

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

func NewServer

func NewServer(logger lager.Logger, param Parameters, appEndpoint, mowerEndpoint, statusEndpoint http.Handler) *Server

func (*Server) Address

func (s *Server) Address() (httpAddress string)

func (*Server) Start

func (s *Server) Start(errs *util.AsyncErr) error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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