app

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: MIT Imports: 5 Imported by: ? modules, 0 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

View Source
const (
	// SpaceInitializing is an event to be fired when Space is being initialized.
	SpaceInitializing event.Event = iota
)

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 Space added in v1.1.1

type Space interface {
	event.Registry
	GetApplication(appInterface interface{}) Application
	AddApplication(application Application) error
	Initialize() error
	Start() error
	Close()
}

A Space contains all apps that may be available in a V2Ray runtime.

func NewSpace added in v1.1.1

func NewSpace() Space

NewSpace creates a new 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