Documentation ¶
Index ¶
- Variables
- func NewXrayDownloadCmdRun() func(cmd *cobra.Command, args []string) error
- type AddressPort
- type Asset
- type Author
- type Config
- type DownloadConfig
- type GithubLatestRelease
- type Inbound
- type InboundSettings
- type Log
- type Mux
- type OutBound
- type OutboundSettings
- type Policy
- type Reactions
- type Routing
- type Rule
- type ShadowsocksServer
- type Sniffing
- type StreamSettings
- type System
- type TrojanServer
- type Uploader
- type User
- type Vnext
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = &DownloadConfig{}
Functions ¶
Types ¶
type AddressPort ¶ added in v0.2.2
type Asset ¶ added in v0.2.0
type Asset struct { Url string `json:"url"` Id int `json:"id"` NodeId string `json:"node_id"` Name string `json:"name"` Label interface{} `json:"label"` Uploader *Uploader `json:"uploader"` ContentType string `json:"content_type"` State string `json:"state"` Size int `json:"size"` DownloadCount int `json:"download_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` BrowserDownloadUrl string `json:"browser_download_url"` }
type Author ¶ added in v0.2.0
type Author struct { Login string `json:"login"` Id int `json:"id"` NodeId string `json:"node_id"` AvatarUrl string `json:"avatar_url"` GravatarId string `json:"gravatar_id"` Url string `json:"url"` HtmlUrl string `json:"html_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` OrganizationsUrl string `json:"organizations_url"` ReposUrl string `json:"repos_url"` EventsUrl string `json:"events_url"` ReceivedEventsUrl string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` }
type DownloadConfig ¶ added in v0.2.1
type DownloadConfig struct {
GhProxy string // gh-proxy address
}
DownloadConfig config for command: xraysub gen
type GithubLatestRelease ¶ added in v0.2.0
type GithubLatestRelease struct { Url string `json:"url"` AssetsUrl string `json:"assets_url"` UploadUrl string `json:"upload_url"` HtmlUrl string `json:"html_url"` Id int `json:"id"` Author *Author `json:"author"` NodeId string `json:"node_id"` TagName string `json:"tag_name"` TargetCommitish string `json:"target_commitish"` Name string `json:"name"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` CreatedAt time.Time `json:"created_at"` PublishedAt time.Time `json:"published_at"` Assets []*Asset `json:"assets"` TarballUrl string `json:"tarball_url"` ZipballUrl string `json:"zipball_url"` Body string `json:"body"` Reactions *Reactions `json:"reactions"` }
type InboundSettings ¶
type OutBound ¶ added in v0.2.2
type OutBound struct { Tag string `json:"tag"` Protocol string `json:"protocol"` Latency *time.Duration `json:"-"` // server's latency Inbound *Inbound `json:"-"` // bound inbound for detecting latency Comment string `json:"-"` Settings *OutboundSettings `json:"settings"` StreamSettings *StreamSettings `json:"streamSettings"` Mux *Mux `json:"mux"` }
func (OutBound) PrettyComment ¶ added in v0.2.2
type OutboundSettings ¶
type OutboundSettings struct { Servers []interface{} `json:"servers"` Vnext []*Vnext `json:"vnext"` }
func (OutboundSettings) GetAddressPort ¶ added in v0.2.2
func (s OutboundSettings) GetAddressPort() AddressPort
type ShadowsocksServer ¶
type ShadowsocksServer struct { Address string `json:"address"` Method string `json:"method"` Ota bool `json:"ota"` Password string `json:"password"` Port int `json:"port"` Level int `json:"level"` }
func (ShadowsocksServer) GetAddress ¶ added in v0.2.2
func (s ShadowsocksServer) GetAddress() string
func (ShadowsocksServer) GetPort ¶ added in v0.2.2
func (s ShadowsocksServer) GetPort() int
type StreamSettings ¶
type TrojanServer ¶ added in v0.2.3
type TrojanServer struct { Address string `json:"address"` Password string `json:"password"` Port int `json:"port"` }
func (TrojanServer) GetAddress ¶ added in v0.2.3
func (s TrojanServer) GetAddress() string
func (TrojanServer) GetPort ¶ added in v0.2.3
func (s TrojanServer) GetPort() int
type Uploader ¶ added in v0.2.0
type Uploader struct { Login string `json:"login"` Id int `json:"id"` NodeId string `json:"node_id"` AvatarUrl string `json:"avatar_url"` GravatarId string `json:"gravatar_id"` Url string `json:"url"` HtmlUrl string `json:"html_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` OrganizationsUrl string `json:"organizations_url"` ReposUrl string `json:"repos_url"` EventsUrl string `json:"events_url"` ReceivedEventsUrl string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` }
Click to show internal directories.
Click to hide internal directories.