Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListener ¶
NewListener creates a new Sandwich listener.
func NewTunnelContext ¶
func NewTunnelContext(lib *Lib, serialized_configuration []byte) (*TunnelContext, *Error)
NewTunnelContext creates a new TunnelContext.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error wraps a C pointer to an error.
func NewErrorFromPointer ¶
func NewErrorFromPointer(e *C.struct_SandwichError) *Error
NewErrorFromPointer creates a new Error from a pointer.
func (*Error) GetDetails ¶
GetDetails returns the encapsulated error, if any.
type IO ¶
type IO struct {
// contains filtered or unexported fields
}
Io wraps a SandwichIO structure.
type Lib ¶
type Lib struct {
// contains filtered or unexported fields
}
Lib wraps a C pointer to a top-level Sandwich context.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener wraps a C pointer to a Sandwich listener object.
type OwnedIO ¶
type OwnedIO struct {
// contains filtered or unexported fields
}
OwnedIO wraps a C pointer to a Sandwich owned IO.
func NewOwnedIOTCPClient ¶
NewOwnedIOTCPClient creates a new client side Sandwich IO using TCP.
func NewOwnedIOTurboClient ¶
func NewOwnedIOTurboClient(udp_hostname string, udp_port uint16, tcp_hostname string, tcp_port uint16) (*OwnedIO, uint32)
NewOwnedIOTurboClient creates a new client side Sandwich IO using Turbo transport.
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel wraps a C pointer to a Sandwich tunnel.
func (*Tunnel) AttachTracer ¶
AttachTracer attaches a tracer to the tunnel.
type TunnelContext ¶
type TunnelContext struct {
// contains filtered or unexported fields
}
TunnelContext wraps a C pointer to a Sandwich tunnel context.
type TunnelIO ¶
type TunnelIO interface { // TunnelIOInterface is a io.ReadWriter io.ReadWriter // SetState sets the state of the tunnel. // // It is guaranteed that the state of the tunnel will not change between // two calls to SetState. SetState(tunnelState uint32) }
TunnelIO wraps a Sandwich tunnel IO.