Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocolToNetwork ¶
func ProtocolToNetwork(proto proxy_grpc.NetworkProtocol) string
Types ¶
type ErrConnect ¶
type ErrConnect struct {
Err error
}
ErrConnect means an error occurred while connecting to the destination.
func (ErrConnect) Error ¶
func (e ErrConnect) Error() string
func (ErrConnect) Unwrap ¶
func (e ErrConnect) Unwrap() error
type ErrProxy ¶
type ErrProxy struct {
Err error
}
ErrConnect means an error occurred while forwarding traffic.
type ErrResolve ¶
type ErrResolve struct {
Err error
}
ErrResolve means an error occurred while resolving the hostname.
func (ErrResolve) Error ¶
func (e ErrResolve) Error() string
func (ErrResolve) Unwrap ¶
func (e ErrResolve) Unwrap() error
type GRPCProxyServer ¶
type GRPCProxyServer struct { NextConnectionID atomic.Uint64 ConnectionMap sync.Map proxy_grpc.UnimplementedNetworkProxyServer }
GRPCProxyServer is the implementation of the gRPC proxy server.
func (*GRPCProxyServer) Proxy ¶
func (srv *GRPCProxyServer) Proxy(proxyServer proxy_grpc.NetworkProxy_ProxyServer) error
Proxy implements NetworkProxyServer.
Click to show internal directories.
Click to hide internal directories.