Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is a net.Listener that connects to a Border0 tunnel server and forwards connections to the local machine.
type Option ¶
type Option func(*Listener)
Option is a function that configures a Listener.
func WithAPIClient ¶
WithAPIClient sets the API client to use for the Listener.
func WithAuthToken ¶
WithAuthToken sets the auth token to use with the API client.
func WithSocketName ¶
WithSocketName sets the socket name to use for the HTTP socket that the Listener will create.
func WithTunnelServer ¶
WithTunnelServer sets the tunnel server address for the Listener.
Click to show internal directories.
Click to hide internal directories.