package
1.8.25
Repository: https://github.com/xmplusdev/xray-core.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
CreateObject creates a new object based on the given Xray instance and config.
Dial provides an easy way for upstream caller to create net.Conn through Xray.
DialUDP provides a way to exchange UDP packets through Xray instance to remote servers.
FromContext returns an Instance from the given context, or nil if the context doesn't contain one.
No description provided by the author
No description provided by the author
No description provided by the author
MustFromContext returns an Instance from the given context, or panics if not present.
New returns a new Xray instance based on given configuration.
No description provided by the author
RegisterConfigLoader add a new ConfigLoader.
RequireFeatures is a helper function to require features from Instance in context.
ServerType returns the type of the server.
StartInstance starts a new Xray instance with given serialized config.
ToBackgroundDetachedContext create a detached context from another context Internal API */.
Version returns Xray's version as a string, in the form of "x.y.z" where x, y and z are numbers.
VersionStatement returns a list of strings representing the full version info.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Annotation is a concept in Xray.
Config is the master config of Xray.
ConfigFormat is a configurable format of Xray config file.
No description provided by the author
InboundHandlerConfig is the configuration for inbound handler.
Instance combines all functionalities in Xray.
OutboundHandlerConfig is the configuration for outbound handler.

# Interfaces

Server is an instance of Xray.

# Type aliases

ConfigBuilder is a builder to build core.Config from filenames and formats.
ConfigLoader is a utility to load Xray config from external source.
ConfigsMerger merge multiple json configs into on config.
XrayKey is the key type of Instance in Context, exported for test.