runtime

package
v0.0.0-...-93f22b1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime the instance of our server

func CreateRuntime

func CreateRuntime(routes *mux.Router, port int, shutdownTimeout time.Duration) *Runtime

CreateRuntime Create a new server runtime and return it. Adds all services

func (*Runtime) Port

func (server *Runtime) Port() int

Port return the port the server is running

func (*Runtime) Start

func (server *Runtime) Start() error

Start start the server

func (*Runtime) Stop

func (server *Runtime) Stop()

Stop stop the server

type Settings

type Settings struct {
	GoogleProjectID         string
	BucketName              string
	Port                    int
	GracefulShutdownTimeout time.Duration
	SsoURLKey               string
}

Settings runtime require settings

func LoadSettingsFromSystem

func LoadSettingsFromSystem() *Settings

LoadSettingsFromSystem load the settings from the env vars

func (*Settings) MustValidate

func (s *Settings) MustValidate()

MustValidate fail if we can't validate

Jump to

Keyboard shortcuts

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