Versions in this module Expand all Collapse all v1 v1.1.3 Jan 1, 2023 Changes in this version + var AEADMethod = []shadowsocks.CipherType + func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.InboundHandlerConfig, error) + func OutboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.OutboundHandlerConfig, error) + func TransitBuilder(config *Config, nodeInfo *api.TransitNodeInfo, tag string, UUID string, ...) (*core.OutboundHandlerConfig, error) + type Address struct + func (v *Address) Build() *net.IPOrDomain + func (v *Address) UnmarshalJSON(data []byte) error + type CertConfig struct + CertDomain string + CertFile string + CertMode string + DNSEnv map[string]string + Email string + KeyFile string + Provider string + type Config struct + CertConfig *CertConfig + DNSType string + DisableGetRule bool + DisableIVCheck bool + DisableUploadTraffic bool + EnableDNS bool + EnableFallback bool + FallBackConfigs []*FallBackConfig + SendIP string + type Controller struct + Rtag bool + Tag string + TransitTag string + func New(server *core.Instance, api api.API, config *Config) *Controller + func (c *Controller) AddInboundLimiter(tag string, nodeSpeedLimit uint64, userList *[]api.UserInfo) error + func (c *Controller) AddUserRoutingRule(tag string, email []string) + func (c *Controller) Close() error + func (c *Controller) DeleteInboundLimiter(tag string) error + func (c *Controller) GetDetectResult(tag string) (*[]api.DetectResult, error) + func (c *Controller) GetOnlineDevice(tag string) (*[]api.OnlineUser, error) + func (c *Controller) RemoveUserRoutingRule(email []string) + func (c *Controller) Start() error + func (c *Controller) Transit(newTransitNodeInfo *api.TransitNodeInfo, userInfo *[]api.UserInfo) (err error) + func (c *Controller) UpdateInboundLimiter(tag string, updatedUserList *[]api.UserInfo) error + func (c *Controller) UpdateRule(tag string, newRuleList []api.DetectRule) error + type FallBackConfig struct + Dest string + Path string + ProxyProtocolVer uint64 + SNI string + type OutboundDetourConfig struct + MuxSettings *conf.MuxConfig + Protocol string + ProxySettings *conf.ProxyConfig + SendThrough *conf.Address + Settings *json.RawMessage + StreamSetting *conf.StreamConfig + Tag string + func (c *OutboundDetourConfig) Build() (*core.OutboundHandlerConfig, error) + type ShadowsocksClientConfig struct + Servers []*ShadowsocksServerTarget + func (v *ShadowsocksClientConfig) Build() (proto.Message, error) + type ShadowsocksServer struct + Address string + Cipher string + Email string + IVCheck bool + Level byte + Password string + Port uint16 + type ShadowsocksServerTarget struct + Address *Address + Cipher string + Email string + IVCheck bool + Level byte + Password string + Port uint16 + UoT bool + type TrojanClientConfig struct + Servers []*TrojanServerTarget + func (c *TrojanClientConfig) Build() (proto.Message, error) + type TrojanServer struct + Address string + Email string + Flow string + Level byte + Password string + Port uint16 + type TrojanServerTarget struct + Address *Address + Email string + Flow string + Level byte + Password string + Port uint16 + type VLessOutbound struct + Address string + Port uint16 + Users []json.RawMessage + type VLessOutboundConfig struct + Vnext []*VLessOutboundVnext + func (c *VLessOutboundConfig) Build() (proto.Message, error) + type VLessOutboundVnext struct + Address *Address + Port uint16 + Users []json.RawMessage + type VMessAccount struct + AlterIds uint16 + Experiments string + ID string + Security string + func (a *VMessAccount) Build() *vmess.Account + type VMessOutbound struct + Address string + Port uint16 + Users []json.RawMessage + type VMessOutboundConfig struct + Receivers []*VMessOutboundTarget + func (c *VMessOutboundConfig) Build() (proto.Message, error) + type VMessOutboundTarget struct + Address *Address + Port uint16 + Users []json.RawMessage