server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 7 Imported by: 7

Documentation

Overview

Package server provide Context, which contains server "Global Like" structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Db                   db.Session
	JWTKey               []byte
	ValidationMiddleware middleware.Middleware
	SimulationProcessor  *processor.SimulationProcessor
}

Context contains server structures passed to all subrouters

func NewContext

func NewContext(conf *config.Config) (*Context, error)

NewContext constructor create Context using config.Config

Directories

Path Synopsis
Package middleware provide interface for Middleware functions.
Package middleware provide interface for Middleware functions.

Jump to

Keyboard shortcuts

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