Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = Client{}
Functions ¶
func NewRequest ¶
Types ¶
type CallHandler ¶
type CallHandler struct { Path string MaxLength int // default is 1Mb ReadTimeout time.Duration // how long to wait for the request to be completed default is 30s Handler func(c ctx.C, call *Call) error }
func (CallHandler) Register ¶
func (this CallHandler) Register(s *Server)
type Server ¶
type Server struct { // called when a request is done, by default it logs and generate metrics OnResponse func(Stat) // contains filtered or unexported fields }
func (*Server) HandleRequest ¶
Click to show internal directories.
Click to hide internal directories.