Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
func CheckVersion() string
CheckVersionX string This func will return libv2ray binding version and V2Ray version used.
func InitCoreEnv ¶
InitCoreEnv initializes environment variables and file system handlers for the core It sets up asset path, certificate path, XUDP base key and customizes the file reader to support Android asset system
func StartSimple ¶
func StopSimple ¶
func StopSimple(key int32)
Types ¶
type CoreController ¶
type CoreController struct {
ConfigureFile string
IsRunning bool
// contains filtered or unexported fields
}
CoreController represents a controller for managing Xray core instance lifecycle
func NewCoreController ¶
func NewCoreController() *CoreController
NewCoreController initializes and returns a new CoreController instance Sets up the console log handler and associates it with the provided callback handler
func (*CoreController) StartLoop ¶
func (x *CoreController) StartLoop() (err error)
StartLoop initializes and starts the core processing loop Thread-safe method that configures and runs the Xray core with the provided configuration Returns immediately if the core is already running
func (*CoreController) StopLoop ¶
func (x *CoreController) StopLoop()
StopLoop safely stops the core processing loop and releases resources Thread-safe method that shuts down the core instance and triggers necessary callbacks