serverbox

package
v0.0.0-...-130b92d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AbortServers

func AbortServers(sbc *SbContext) (err error)

func AttachRouterToServer

func AttachRouterToServer(router mux.Router, serName string, sbc *SbContext) (err error)

func InitializeServers

func InitializeServers(sbc *SbContext) (err error)

func InitializeState

func InitializeState(uuid string, host string, state *State) error

func InitializeStatistics

func InitializeStatistics(uuid string, host string, stats *Statistics) error

func RunServers

func RunServers(sbc *SbContext) error

func ShutDownServers

func ShutDownServers(sbc *SbContext) error

func ShutDownState

func ShutDownState(state *State) error

func ShutDownStatistics

func ShutDownStatistics(stats *Statistics) error

Types

type SbContext

type SbContext struct {
	Log           common.Logger
	Conf          serverBoxConf
	Servers       map[string]*Server
	SignalChannel chan os.Signal
}

type Server

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

type ServerConfigurations

type ServerConfigurations struct {
	Http httpConfigurations
}

type ServerHttp

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

func (*ServerHttp) AbortServerInstance

func (s *ServerHttp) AbortServerInstance() error

func (*ServerHttp) AttachRouterServerInstance

func (s *ServerHttp) AttachRouterServerInstance(router mux.Router) error

func (*ServerHttp) InitializeServerInstance

func (s *ServerHttp) InitializeServerInstance(sc ServerConfigurations) (err error)

func (*ServerHttp) RunServerInstance

func (s *ServerHttp) RunServerInstance() error

func (*ServerHttp) ShutDownServerInstance

func (s *ServerHttp) ShutDownServerInstance() error

type ServerType

type ServerType uint8

type State

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

func (*State) RegisterForState

func (s *State) RegisterForState() error

func (*State) ReportState

func (s *State) ReportState(state string) error

type Statistics

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

func (*Statistics) RegisterForStats

func (s *Statistics) RegisterForStats() error

Jump to

Keyboard shortcuts

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