grpc

package
v1.32.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunnelClient added in v1.26.0

type TunnelClient struct {
	// contains filtered or unexported fields
}

func NewTunnelClient added in v1.26.0

func NewTunnelClient(addr string, cfg *tls.Config) *TunnelClient

func (*TunnelClient) Close added in v1.26.0

func (c *TunnelClient) Close() error

func (*TunnelClient) DialContext added in v1.26.0

func (c *TunnelClient) DialContext(ctx context.Context, dst string) (io.ReadWriteCloser, error)

type TunnelServer added in v1.26.0

type TunnelServer struct {
	pb.UnimplementedTunnelServer
	// contains filtered or unexported fields
}

TunnelServer is a GRPC tunnel server, its zero value is ready to use

func (*TunnelServer) Close added in v1.26.0

func (s *TunnelServer) Close() error

func (*TunnelServer) Serve added in v1.26.0

func (s *TunnelServer) Serve(lis net.Listener, tlsConf *tls.Config) error

Serve will return a non-nil error unless Close is called.

func (*TunnelServer) Stream added in v1.26.0

func (s *TunnelServer) Stream(stream pb.Tunnel_StreamServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL