app

package
v2.36.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApplicationToSpace

func AddApplicationToSpace(ctx context.Context, appConfig interface{}) error

func ContextWithSpace

func ContextWithSpace(ctx context.Context, space Space) context.Context

Types

type Application added in v1.13.1

type Application interface {
	Interface() interface{}
	Start() error
	Close()
}

func CreateAppFromConfig

func CreateAppFromConfig(ctx context.Context, config interface{}) (Application, error)

type InitializationCallback

type InitializationCallback func() error

type Space added in v1.1.2

type Space interface {
	GetApplication(appInterface interface{}) Application
	AddApplication(application Application) error
	Initialize() error
	OnInitialize(InitializationCallback)
	Start() error
	Close()
}

A Space contains all apps that may be available in a V2Ray runtime. Caller must check the availability of an app by calling HasXXX before getting its instance.

func NewSpace added in v1.1.2

func NewSpace() Space

func SpaceFromContext

func SpaceFromContext(ctx context.Context) Space

Directories

Path Synopsis
dns
log
Package proxyman defines applications for manageing inbound and outbound proxies.
Package proxyman defines applications for manageing inbound and outbound proxies.
mux

Jump to

Keyboard shortcuts

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