ziti

package
v0.13.20 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 23 Imported by: 86

Documentation

Index

Constants

View Source
const (
	LatencyCheckInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Authenticate() error
	Dial(serviceName string) (edge.ServiceConn, error)
	Listen(serviceName string) (edge.Listener, error)
	ListenWithOptions(serviceName string, options *edge.ListenOptions) (edge.Listener, error)
	GetServiceId(serviceName string) (string, bool, error)
	GetServices() ([]edge.Service, error)
	GetService(serviceName string) (*edge.Service, bool)

	GetSession(id string) (*edge.Session, error)
	GetBindSession(id string) (*edge.Session, error)

	Metrics() metrics.Registry
	// Close closes any connections open to edge routers
	Close()
}

func NewContext

func NewContext() Context

func NewContextWithConfig

func NewContextWithConfig(cfg *config.Config) Context

func NewContextWithOpts added in v0.13.0

func NewContextWithOpts(cfg *config.Config, options *config.Options) Context

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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