server

package
v0.0.0-...-5cca3c0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(w http.ResponseWriter, code int)

Code is an empty http response

func Error

func Error(w http.ResponseWriter, code int, message string)

Error http response

func JSON

func JSON(w http.ResponseWriter, code int, payload interface{})

JSON http response

func NewContactRouter

func NewContactRouter(cs root.ContactService, mux *goji.Mux) *goji.Mux

NewContactRouter defines each path,handlerfunction pair

Types

type Server

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

Server type definition

func NewServer

func NewServer(cs root.ContactService, config *root.Config) *Server

NewServer creates and returns a new server instance

func (*Server) Start

func (s *Server) Start()

Start will apply server settings and starts it

Jump to

Keyboard shortcuts

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