app

package
v2.18.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 4 Imported by: 8 modules, 103 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.1

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.1

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