Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorSendChannelClosed = errors.New("Send channel is closed") ErrorWriteToClosed = errors.New("Writing to a closed transport") )
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
type HandleFunc func(ResponseWriter, proto.Message) error
type ResponseWriter ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransport(conn Conn, handler HandleFunc) *Transport
func (*Transport) Abandon ¶
func (t *Transport) Abandon()
Abandons connection and closes the transport.
Click to show internal directories.
Click to hide internal directories.