web

package
v0.0.0-...-bb322fc Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeCanonical

func ServeCanonical(addr, host string) error

ServeCanonical makes sure everything goes where it should

Types

type Server

type Server struct {
	Addr        string
	ServerName  string
	WebRoot     string
	TLSCertFile string
	TLSKeyFile  string
}

Server represents the web server

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(
	ctx context.Context,
	log *logging.Logger,
	stock backend.Stock,
	hw hardware.Machine,
	txns backend.Transactions,
) error

ServeHTTP runs the web server (!)

Jump to

Keyboard shortcuts

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