server

package
v0.0.0-...-c18b09c Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppVersion string
View Source
var BuildTime string
View Source
var CommitHash string

Functions

func Start

func Start(addr string, config *ServerConfig) error

Types

type HandlerConfig

type HandlerConfig struct {
	Type    string
	Auth    bool
	Log     bool
	Runners map[string]RunnerConfig
}

type RunnerConfig

type RunnerConfig map[string]string

type ServerConfig

type ServerConfig struct {
	Handlers map[string]HandlerConfig
	Tls      struct {
		Key  string
		Cert string
	}
	Apikeys []string
}

Jump to

Keyboard shortcuts

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