Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvYeagerAddress = "YEAGER_ADDRESS" EnvYeagerTransport = "YEAGER_TRANSPORT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Inbounds Inbounds `json:"inbounds,omitempty"` // 入站代理 Outbounds []*YeagerClient `json:"outbounds,omitempty"` // 出站代理 Rules []string `json:"rules,omitempty"` // 路由规则 // developer only Debug bool `json:"debug,omitempty"` // 参考 transport/grpc/pool.go 如何预估连接池大小 GrpcChannelPoolSize int `json:"grpcChannelPoolSize,omitempty"` }
type Inbounds ¶
type Inbounds struct { SOCKS *struct { Listen string `json:"listen"` } `json:"socks,omitempty"` HTTP *struct { Listen string `json:"listen"` } `json:"http,omitempty"` Yeager *YeagerServer `json:"yeager,omitempty"` }
type YeagerClient ¶
type YeagerServer ¶
Click to show internal directories.
Click to hide internal directories.