Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Http ¶
type Http struct {
// contains filtered or unexported fields
}
Http implements transport.Server interface.
func (*Http) ListenAddr ¶
ListenAddr implements transport.Server interface.
func (*Http) SetHandler ¶
func (s *Http) SetHandler(h transport.RequestHandler)
type MockSocket ¶
type MockSocket struct { *Socket // contains filtered or unexported fields }
MockSocket is a socket server using a net.Pipe internally
func NewMockSocket ¶
func NewMockSocket(conf *config.Config) *MockSocket
NewMockSocket returns a new instance of a mock socket server
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
Socket handles socket connections
func (*Socket) GoServe ¶
func (s *Socket) GoServe()
GoServe starts a server without blocking the current goroutine
func (*Socket) ListenAddr ¶
ListenAddr returns the listen address of the server.
func (*Socket) ListenAndServe ¶
ListenAndServe starts serving requests
func (*Socket) SetHandler ¶
func (s *Socket) SetHandler(h transport.RequestHandler)
SetHandler implements transport.Server
Click to show internal directories.
Click to hide internal directories.