api

package
v0.0.0-...-f92ee09 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the webserver state

func New

func New(config *ServerConfig) *Server

New creates a new webserver instance

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown shuts down the webserver

func (*Server) Start

func (s *Server) Start()

Start starts the webserver. Does not block.

type ServerConfig

type ServerConfig struct {
	DB             store.Store
	Broker         *stream.Broker
	CircularBuffer *circular.Buffer
	ListenAddr     string
	AccessLogDir   string
}

ServerConfig represents the webserver configuration

Jump to

Keyboard shortcuts

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