server

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 28 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
}

A Server is an instance of the scouting server

func New

func New(store *store.Service, consumer tba.Consumer, logWriter io.Writer, year int, origin, schemaPath string, certFile, keyFile string) (*Server, error)

New creates a new server given a db file and a io.Writer for logging

func (*Server) Run

func (s *Server) Run(httpAddr, httpsAddr string) error

Run starts a running the server on the specified address

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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