Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EClosed = errors.New("Connection Closed")
View Source
var EPipelineStall = errors.New("Pipeline-Stall")
Functions ¶
This section is empty.
Types ¶
type ARClient ¶
type ARClient struct { Addr string Dial Dialer MkResp func() Response // contains filtered or unexported fields }
Auto-Reconnect-Client
func (*ARClient) DoAsyncSupport ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(client ClientCodec, respmk func() Response) *Client
func (*Client) DoAsyncSupport ¶
type ClientCodec ¶
type Dialer ¶
type Dialer func(addr string) (ClientCodec, error)
type ErrorHandler ¶
type ErrorHandler func(e ServerError, req Request, resp Response)
type Server ¶
type Server struct { Handle ServerHandler Error ErrorHandler Allocator func() (req Request, resp Response) Concurrency int QueueMulti int // contains filtered or unexported fields }
func (*Server) Serve ¶
func (s *Server) Serve(sc ServerCodec) error
type ServerCodec ¶
type ServerError ¶
type ServerError int
const ( SE_None ServerError = iota SE_QueueOverflow )
func (ServerError) Error ¶
func (s ServerError) Error() string
type ServerHandler ¶
Click to show internal directories.
Click to hide internal directories.