server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Msg string
	Err string
}

Error contains an error of the api

type PackageRequestFieldMissing

type PackageRequestFieldMissing string

PackageRequestFieldMissing is a new type that inherits error

func (PackageRequestFieldMissing) Error

func (err PackageRequestFieldMissing) Error() string

Error returns a custom error

type Server

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

Server holds the state of a new Server

func New

func New(config *cfg.Config) (*Server, error)

New returns a new instance of a Server

func (*Server) Start

func (server *Server) Start()

Start is starting to serve the api

func (*Server) Stop

func (server *Server) Stop()

Stop is stoping to serve the api

Jump to

Keyboard shortcuts

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