server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Direction string
	Value     interface{}
}

func ReadRequest

func ReadRequest(r io.Reader) (*Request, error)

type Server

type Server struct {
	Routes map[string]func(interface{}) bool
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(typ, addr string) error

Jump to

Keyboard shortcuts

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