core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStreamFn = func(path string) error { return fmt.Errorf("%s is not a known stream", path) }

ErrNoStreamFn is used to create dynamic errors for unknown hosts requested as stream

View Source
var ErrStreamAlreadyActive = errors.New("Stream is already active")

ErrStreamAlreadyActive is an error describing that we cannot restart the stream because it's already running

Functions

func ExitHandler

func ExitHandler() chan bool

ExitHandler is a function that can recognise when the application is being closed and cleans up all background running processes

func GetRouter

func GetRouter(config *config.Specification) *httprouter.Router

GetRouter returns the return for the application

func SetupLogger

func SetupLogger(spec *config.Specification)

SetupLogger sets the logger for the proper settings based on the environment

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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