gateway

package
v0.0.0-...-858628d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

Gateway connects to the hub and forward local packets.

func New

func New(cc *grpc.ClientConn, targetAddress string) *Gateway

New creates a Gateway.

func (*Gateway) Serve

func (gw *Gateway) Serve(l net.Listener) error

Serve forwards its accepted connections to the hub.

Jump to

Keyboard shortcuts

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