Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterApp ¶
func RegisterApp(id ID, creator ForContextCreator)
Types ¶
type Context ¶
type Context interface {
CallerTag() string
}
Context of a function call from proxy to app.
type ForContextCreator ¶
type ForContextCreator func(Context, interface{}) interface{}
type Space ¶
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 ¶
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 ¶
func NewController() *SpaceController
func (*SpaceController) Bind ¶
func (this *SpaceController) Bind(id ID, object interface{})
func (*SpaceController) ForContext ¶
func (this *SpaceController) ForContext(tag string) Space
Click to show internal directories.
Click to hide internal directories.