router

package
v0.0.0-...-8341997 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouter

func InitRouter(b *Bloodlines)

InitRouter connects the handlers to endpoints with gin

Types

type Bloodlines

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

Bloodlines is the main server object which routes requests

func New

func New(config *config.Root) (*Bloodlines, error)

New returns a ready-to-run Bloodlines struct from the given config

func (*Bloodlines) Start

func (b *Bloodlines) Start(port string)

Start begins the Bloodlines server

Jump to

Keyboard shortcuts

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