server

package
v0.0.0-...-c756989 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SizeLimit = int64(1 * 1024 * 1024)

SizeLimit is the max size of the request body (1MB)

Variables

View Source
var (
	// ErrNoAuthProvided when the request doesn't have the auth token
	ErrNoAuthProvided = errors.New("no token auth provided")

	// ErrInvalidAuth when the token is invalid
	ErrInvalidAuth = errors.New("invalid token")
)

Functions

func RunServer

func RunServer(token, addr string, store store.Store, logger *log.Logger) *http.Server

RunServer starts the server listening in the specified address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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