server

package
v0.0.0-...-c083feb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr      string
	Conn      *db.Conn
	Monitor   *monitor.Monitor
	SecretKey string
}

Config stores the configuration for the embedded web server.

type Server

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

Server provides the API for interacting with the database and serves the static files that comprise the UI.

func New

func New(cfg *Config) (*Server, error)

New creates and initializes the server.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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