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: 0

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