core

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2025 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCustomConfig

func GetCustomConfig(infos []*panel.NodeInfo) (*dns.Config, []*core.OutboundHandlerConfig, *router.Config, error)

Types

type AddUsersParams

type AddUsersParams struct {
	Tag   string
	Users []panel.UserInfo
	*panel.NodeInfo
}

type ShadowsocksHTTPNetworkSettings

type ShadowsocksHTTPNetworkSettings struct {
	AcceptProxyProtocol bool   `json:"acceptProxyProtocol"`
	Path                string `json:"path"`
	Host                string `json:"Host"`
}

type UserMap

type UserMap struct {
	// contains filtered or unexported fields
}

type V2Core

type V2Core struct {
	Config   *conf.Conf
	ReloadCh chan struct{}

	Server *core.Instance
	// contains filtered or unexported fields
}

func New

func New(config *conf.Conf) *V2Core

func (*V2Core) AddNode

func (v *V2Core) AddNode(tag string, info *panel.NodeInfo) error

func (*V2Core) AddUsers

func (v *V2Core) AddUsers(p *AddUsersParams) (added int, err error)

func (*V2Core) Close

func (v *V2Core) Close() error

func (*V2Core) DelNode

func (v *V2Core) DelNode(tag string) error

func (*V2Core) DelUsers

func (vc *V2Core) DelUsers(users []panel.UserInfo, tag string, _ *panel.NodeInfo) error

func (*V2Core) GetUserManager

func (v *V2Core) GetUserManager(tag string) (proxy.UserManager, error)

func (*V2Core) GetUserTrafficSlice

func (vc *V2Core) GetUserTrafficSlice(tag string, mintraffic int) ([]panel.UserTraffic, error)

func (*V2Core) Start

func (v *V2Core) Start(infos []*panel.NodeInfo) error

Directories

Path Synopsis
app
distro
all

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL