Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶ added in v1.12.9
func Register(id ID, creator ForContextCreator)
Types ¶
type Context ¶ added in v1.1.4
type Context interface {
CallerTag() string
}
Context of a function call from proxy to app.
type ForContextCreator ¶ added in v1.9.1
type ForContextCreator func(Context, interface{}) interface{}
type Space ¶ added in v1.1.1
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.
type SpaceController ¶ added in v1.9.1
type SpaceController struct {
// contains filtered or unexported fields
}
A SpaceController is supposed to be used by a shell to create Spaces. It should not be used directly by proxies.
func NewController ¶ added in v1.9.1
func NewController() *SpaceController
func (*SpaceController) Bind ¶ added in v1.9.1
func (this *SpaceController) Bind(id ID, object interface{})
func (*SpaceController) ForContext ¶ added in v1.9.1
func (this *SpaceController) ForContext(tag string) Space
Click to show internal directories.
Click to hide internal directories.