server

package
v0.0.0-...-df6c08f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2015 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(handler http.Handler)

Set handler for the default service

func Init

func Init()

func Serve

func Serve()

func Service

func Service(service *service.Service)

Set handler for the default service

Types

type Server

type Server struct {
	Handler http.Handler
	Service *service.Service
	Herald  herald.Herald
}
var DefaultServer *Server

func New

func New() *Server

func (*Server) Init

func (s *Server) Init()

func (*Server) PreServe

func (s *Server) PreServe(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve()

Jump to

Keyboard shortcuts

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