server

package
v0.0.0-...-b08f40d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

Config stores configuration for a server instance

type Endpoint

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

Endpoint contains the handler for a particular route

func NewEndpoint

func NewEndpoint(h http.HandlerFunc) Endpoint

NewEndpoint creates an enpoint

func (Endpoint) ServeHTTP

func (e Endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP delegates an incoming request to the appointed handler

type Server

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

Server handles incoming requests for gangway

func NewServer

func NewServer(opts ...interface{}) *Server

NewServer initializes a server with the provided configuration

func (*Server) Listen

func (s *Server) Listen(addr string) error

Listen starts the server on an address

Jump to

Keyboard shortcuts

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