Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2024 Changes in this version + func New(c *conf.CoreConfig) (vCore.Core, error) + type ConnClear struct + func (c *ConnClear) AddConn(cn io.Closer) (key int) + func (c *ConnClear) ClearConn() + func (c *ConnClear) DelConn(key int) + type DNSConfig struct + Rules []map[string]interface{} + Servers []map[string]interface{} + type HookServer struct + EnableConnClear bool + func NewHookServer(enableClear bool) *HookServer + func (h *HookServer) CacheFile() adapter.CacheFile + func (h *HookServer) ClearConn(inbound string, user string) + func (h *HookServer) Close() error + func (h *HookServer) HistoryStorage() *urltest.HistoryStorage + func (h *HookServer) Mode() string + func (h *HookServer) ModeList() []string + func (h *HookServer) PreStart() error + func (h *HookServer) RoutedConnection(_ context.Context, conn net.Conn, m adapter.InboundContext, _ adapter.Rule) (net.Conn, adapter.Tracker) + func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn, m adapter.InboundContext, _ adapter.Rule) (N.PacketConn, adapter.Tracker) + func (h *HookServer) Start() error + func (h *HookServer) StoreFakeIP() bool + func (h *HookServer) StoreSelected() bool + type HttpNetworkConfig struct + Header struct{ ... } + type HttpRequest struct + Headers struct{ ... } + Method string + Path []string + Version string + type Sing struct + func (b *Sing) AddNode(tag string, info *panel.NodeInfo, config *conf.Options) error + func (b *Sing) AddUsers(p *core.AddUsersParams) (added int, err error) + func (b *Sing) Close() error + func (b *Sing) DelNode(tag string) error + func (b *Sing) DelUsers(users []panel.UserInfo, tag string) error + func (b *Sing) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64) + func (b *Sing) Protocols() []string + func (b *Sing) Start() error + func (b *Sing) Type() string + type Tracker struct + func (t *Tracker) AddLeave(f func()) + func (t *Tracker) Leave() + type UserDeleter interface + DelUsers func(uuid []string) error + type WsNetworkConfig struct + Headers map[string]string + Path string