Documentation ¶
Index ¶
- func ReadFromSession(conf *Config, session *common.Session, sessionsOut chan<- *common.Session)
- func ReceiveData(conf *Config, st pb.Tunnel_InitTunnelClient, ...)
- func RunClient(ctx context.Context, opts ...Option) error
- func SendData(conf *Config, stream pb.Tunnel_InitTunnelClient, ...)
- type Config
- type Message
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFromSession ¶
func ReceiveData ¶
Types ¶
type Config ¶ added in v1.4.7
type Config struct { TLS bool // contains filtered or unexported fields }
Config is a config object used to configure a GRPC tunnel from the client side. ClientOption should be used to modify this
type Option ¶ added in v1.4.7
Option is an option able to be configured
func WithLogger ¶
func WithLogger(l log.FieldLogger) Option
WithLogger sets the logger to be used by the server. if not set, output will be discarded
func WithServer ¶
WithServer configures the server this client uses
func WithTLS ¶
WithTLS configures the tunnel to use TLS and sets the certificate expected, and a optional tls hostname override.
func WithTunnels ¶
WithTunnels configures the tunnels to be exposed by this client. Each string should be in the format of: localPort:remotePort
Click to show internal directories.
Click to hide internal directories.