Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(conf *Config) *tunnelServer
NewServer creates a new GRPC handler instance that can be attached to a GRPC server
func ReceiveData ¶
func ReceiveData(conf *Config, stream pb.Tunnel_InitTunnelServer)
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 Server. ServerOption 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
Click to show internal directories.
Click to hide internal directories.