Documentation
¶
Overview ¶
libXray is an Xray wrapper focusing on improving the experience of Xray-core mobile development.
Index ¶
- func Invoke(requestJSON string) string
- type ConvertShareLinksToXrayJsonRequest
- type ConvertXrayJsonToShareLinksRequest
- type ConvertXrayJsonToShareLinksResponse
- type CountGeoDataRequest
- type GetFreePortsRequest
- type GetFreePortsResponse
- type GetXrayStateResponse
- type LibXrayInvokeRequest
- type LibXrayMethod
- type PingRequest
- type PingResponse
- type RunXrayFromJSONRequest
- type RunXrayRequest
- type XrayVersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConvertShareLinksToXrayJsonRequest ¶ added in v1.260711.0
type ConvertShareLinksToXrayJsonRequest struct {
}
type ConvertXrayJsonToShareLinksRequest ¶ added in v1.260711.0
type ConvertXrayJsonToShareLinksRequest struct {
}
type ConvertXrayJsonToShareLinksResponse ¶ added in v1.260711.0
type ConvertXrayJsonToShareLinksResponse struct {
}
type CountGeoDataRequest ¶ added in v1.260601.0
type GetFreePortsRequest ¶ added in v1.260711.0
type GetFreePortsRequest struct {
Count int `json:"count,omitempty"`
}
type GetFreePortsResponse ¶ added in v1.260711.0
type GetFreePortsResponse struct {
Ports []int `json:"ports,omitempty"`
}
type GetXrayStateResponse ¶ added in v1.260711.0
type GetXrayStateResponse struct {
Running bool `json:"running"`
}
type LibXrayInvokeRequest ¶ added in v1.260711.0
type LibXrayInvokeRequest struct {
APIVersion int `json:"apiVersion,omitempty"`
Method LibXrayMethod `json:"method,omitempty"`
Payload json.RawMessage `json:"payload,omitempty"`
}
type LibXrayMethod ¶ added in v1.260711.0
type LibXrayMethod string
const ( LibXrayMethodGetFreePorts LibXrayMethod = "getFreePorts" LibXrayMethodCountGeoData LibXrayMethod = "countGeoData" LibXrayMethodPing LibXrayMethod = "ping" LibXrayMethodTestXray LibXrayMethod = "testXray" LibXrayMethodRunXray LibXrayMethod = "runXray" LibXrayMethodRunXrayFromJson LibXrayMethod = "runXrayFromJson" LibXrayMethodStopXray LibXrayMethod = "stopXray" LibXrayMethodXrayVersion LibXrayMethod = "xrayVersion" LibXrayMethodGetXrayState LibXrayMethod = "getXrayState" )
type PingRequest ¶ added in v1.260711.0
type PingResponse ¶ added in v1.260711.0
type PingResponse struct {
Delay int64 `json:"delay,omitempty"`
}
type RunXrayFromJSONRequest ¶ added in v1.260601.0
type RunXrayFromJSONRequest struct {
ConfigJSON string `json:"configJSON,omitempty"`
}
type RunXrayRequest ¶ added in v1.260601.0
type RunXrayRequest struct {
ConfigPath string `json:"configPath,omitempty"`
}
type XrayVersionResponse ¶ added in v1.260711.0
type XrayVersionResponse struct {
Version string `json:"version,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.