webserver

package
v0.0.0-...-e0ed648 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reloader

type Reloader interface {
	Reload()
}

Reloader interface contains a pointer to the agent instance the we can reload the agent on config push

type Server

type Server struct {
	StateInput <-chan []byte
	Reloader   Reloader
	// contains filtered or unexported fields
}

Server handling for http, should be created by New

func (*Server) Reload

func (s *Server) Reload(cfg *config.Configuration)

Reload webserver configuration

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown webserver

func (*Server) Start

func (s *Server) Start(ctx context.Context)

Run the server routine (should NOT be run in a go routine) You have to call Reload at least once to really start the webserver

Jump to

Keyboard shortcuts

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