server

package
v0.0.0-...-be64df0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMiddleware

func RegisterMiddleware(router *gin.Engine)

RegisterMiddleware registers all Stork middleware.

Types

type StorkServer

type StorkServer struct {
	Engine  *gin.Engine
	Session *mgo.Session
	Config  *config.StorkConfig
}

StorkServer servers the Stork service.

func NewServer

func NewServer(config *config.StorkConfig) *StorkServer

NewServer returns a new StorkServer with the specified StorkConfig.

func (*StorkServer) Run

func (s *StorkServer) Run()

Run starts the StorkServer.

Jump to

Keyboard shortcuts

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