Documentation ¶
Index ¶
- func Initialize()
- func IsConnClosedError(err error) bool
- func MarshalRequest(req *transport.GenericHTTPRequest) (data []byte, err error)
- func ParseField(sizeOffset uint32, data []byte) (str string, nextOffset uint32, err error)
- func ParseRegistration(data []byte) (reg *transport.Registration, a *db.Agent, retErr error)
- func ParseResponse(data []byte) (resp *transport.GenericHTTPResponse, retErr error)
- type Conn
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
func IsConnClosedError ¶
func MarshalRequest ¶
func MarshalRequest(req *transport.GenericHTTPRequest) (data []byte, err error)
func ParseField ¶
func ParseRegistration ¶
ParseRegistration parses data received upon initial connection
func ParseResponse ¶
func ParseResponse(data []byte) (resp *transport.GenericHTTPResponse, retErr error)
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents a single TCP session, which is translated and forwarded to an HTTP endpoint
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles all raw TCP sessions with the same TLS configuration
func NewHandler ¶
Click to show internal directories.
Click to hide internal directories.