Help us shape the future of Go! Take the 2026 Go Developer Survey

egress

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBrokerClosed = errors.New("egress broker closed")
View Source
var ErrSessionLifetime = errors.New("egress session lifetime must be positive and at most ten minutes")
View Source
var Registries = []string{"registry.npmjs.org", "proxy.golang.org", "sum.golang.org"}

Functions

This section is empty.

Types

type Broker

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

func ListenTCP

func ListenTCP(bind string, hosts []string) (*Broker, error)

func (*Broker) Close

func (b *Broker) Close() error

func (*Broker) NewSession

func (b *Broker) NewSession(lifetime time.Duration) (string, error)

func (*Broker) Revoke

func (b *Broker) Revoke(token string) bool

type Proxy

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

func Listen

func Listen(path string, hosts []string) (*Proxy, error)

func (*Proxy) Close

func (p *Proxy) Close() error

Jump to

Keyboard shortcuts

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