ziti

package
v0.11.41 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 28 Imported by: 86

Documentation

Index

Constants

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

Variables

View Source
var NotAuthorized = notAuthorized{}

Functions

This section is empty.

Types

type AuthFailure

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

func (AuthFailure) Error

func (e AuthFailure) Error() string

type Context

type Context interface {
	Authenticate() error
	Dial(serviceName string) (net.Conn, 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(config *config.Config) Context

type NotAccessible

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

func (NotAccessible) Error

func (e NotAccessible) Error() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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