Documentation
¶
Index ¶
- func GetCustomConfig(infos []*panel.NodeInfo) (*dns.Config, []*core.OutboundHandlerConfig, *router.Config, error)
- type AddUsersParams
- type NetworkSettingsProxyProtocol
- type ShadowsocksHTTPNetworkSettings
- type UserMap
- type V2Core
- func (v *V2Core) AddNode(tag string, info *panel.NodeInfo) error
- func (v *V2Core) AddUsers(p *AddUsersParams) (added int, err error)
- func (v *V2Core) Close() error
- func (v *V2Core) DelNode(tag string) error
- func (vc *V2Core) DelUsers(users []panel.UserInfo, tag string, _ *panel.NodeInfo) error
- func (v *V2Core) GetUserManager(tag string) (proxy.UserManager, error)
- func (vc *V2Core) GetUserTrafficSlice(tag string, mintraffic int) ([]panel.UserTraffic, error)
- func (v *V2Core) Start(infos []*panel.NodeInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddUsersParams ¶
type NetworkSettingsProxyProtocol ¶ added in v0.2.5
type NetworkSettingsProxyProtocol struct {
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
}
type V2Core ¶
type V2Core struct {
Config *conf.Conf
ReloadCh chan struct{}
Server *core.Instance
// contains filtered or unexported fields
}
func (*V2Core) GetUserManager ¶
func (v *V2Core) GetUserManager(tag string) (proxy.UserManager, error)
func (*V2Core) GetUserTrafficSlice ¶
Click to show internal directories.
Click to hide internal directories.