web

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(cfg Config, developMode bool) error

StartServer starts the Lex Library webserver with the passed in configuration

func Teardown

func Teardown() error

Teardown gracefully tears down the webserver

Types

type Config

type Config struct {
	ReadTimeout       string
	WriteTimeout      string
	MaxHeaderBytes    int
	MinTLSVersion     uint16
	CertFile          string
	KeyFile           string
	MaxUploadMemoryMB int
	Port              int
}

Config is the configurable properties of the LL web server

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration for the web layer

Jump to

Keyboard shortcuts

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