service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 11 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 is the base struct for the HTTP history service

func NewServer

func NewServer(db *store.MongoStore, logger log.Logger, router *mux.Router, bindAddr, signingSecret string) *Server

NewServer returns a new ZSH History handling service

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown gracefully terminates the server

func (*Server) Start

func (s *Server) Start() error

Start begins listening for requests on the bindAddr. Blocks.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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