Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinecraftService ¶
type MinecraftService struct { EnableHostnameRewrite bool RewrittenHostname string `json:",omitempty"` OnlineCount onlineCount IgnoreFMLSuffix bool `json:",omitempty"` IgnoreSRVRedirect bool `json:",omitempty"` HostnameAccess access `json:",omitempty"` NameAccess access `json:",omitempty"` PingMode string MotdFavicon string MotdDescription string }
type Outbound ¶
type Outbound struct { Name string `json:",omitempty"` Dialer string `json:",omitempty"` TargetAddress string `json:",omitempty"` TargetPort uint16 `json:",omitempty"` Minecraft *MinecraftService `json:",omitempty"` SocketOptions *network.OutboundSocketOptions `json:",omitempty"` ProxyProtocolVersion int8 `json:",omitempty"` ProxyOptions outbound `json:",omitempty"` }
type Root ¶
type Root struct { Log Log Services []*Service Router Router Outbounds []*Outbound Lists map[string]set.StringSet // contains filtered or unexported fields }
func LoadConfigFromFile ¶
func (*Root) Reload ¶
Reload tries to reload the config and returns false if another reloading is on the way. Only takes effect when watcher is enabled.
func (*Root) SetUpdateHandler ¶
func (r *Root) SetUpdateHandler(handler func())
SetUpdateHandler sets a function that would be called after the config reloading.
func (*Root) WatcherEnabled ¶
type RuleDomain ¶
type RuleRewrite ¶
type Service ¶
type Service struct { Name string TargetAddress string `json:",omitempty"` TargetPort uint16 `json:",omitempty"` Listen uint16 EnableProxyProtocol bool `json:",omitempty"` IPAccess access `json:",omitempty"` Minecraft *MinecraftService `json:",omitempty"` TLSSniffing *tlsSniffing `json:",omitempty"` SocketOptions *network.InboundSocketOptions `json:",omitempty"` Outbound outbound `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.