server

package
v0.0.0-...-a1b7954 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgpackHandle = &codec.MsgpackHandle{}
)

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(v interface{}) error
}

type Encoder

type Encoder interface {
	Encode(v interface{}) error
}

type HandlerFunc

type HandlerFunc func(*ResponseWriter, *Request) interface{}

type Request

type Request struct {
	*rest.Request
	// contains filtered or unexported fields
}

func (*Request) DecodePayload

func (this *Request) DecodePayload(v interface{}) error

type ResponseWriter

type ResponseWriter struct {
	*rest.ResponseWriter
	// contains filtered or unexported fields
}

func (*ResponseWriter) Error

func (this *ResponseWriter) Error(err *ergo.Error)

func (*ResponseWriter) WriteData

func (this *ResponseWriter) WriteData(v interface{}) error

type RestHandlerFunc

type RestHandlerFunc func(*rest.ResponseWriter, *rest.Request)

type Server

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

func NewServer

func NewServer() *Server

Jump to

Keyboard shortcuts

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