Documentation
¶
Index ¶
- func New(c *conf.CoreConfig) (vCore.Core, error)
- type DNSConfig
- type GrpcNetworkConfig
- type HookServer
- func (h *HookServer) ModeList() []string
- func (h *HookServer) RoutedConnection(_ context.Context, conn net.Conn, m adapter.InboundContext, _ adapter.Rule, ...) net.Conn
- func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn, m adapter.InboundContext, _ adapter.Rule, ...) N.PacketConn
- type HttpNetworkConfig
- type HttpRequest
- type HttpupgradeNetworkConfig
- type Sing
- 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, info *panel.NodeInfo) error
- func (b *Sing) GetUserTraffic(tag, uuid string, reset bool) (up int64, down int64)
- func (b *Sing) GetUserTrafficSlice(tag string, reset bool) ([]panel.UserTraffic, error)
- func (b *Sing) Protocols() []string
- func (b *Sing) Start() error
- func (b *Sing) Type() string
- type UserDeleter
- type UserMap
- type WsNetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcNetworkConfig ¶
type GrpcNetworkConfig struct {
ServiceName string `json:"serviceName"`
}
type HookServer ¶
type HookServer struct {
// contains filtered or unexported fields
}
func (*HookServer) ModeList ¶
func (h *HookServer) ModeList() []string
func (*HookServer) RoutedConnection ¶
func (*HookServer) RoutedPacketConnection ¶
func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn, m adapter.InboundContext, _ adapter.Rule, _ adapter.Outbound) N.PacketConn
type HttpNetworkConfig ¶
type HttpNetworkConfig struct {
Header struct {
Type string `json:"type"`
Request *json.RawMessage `json:"request"`
Response *json.RawMessage `json:"response"`
} `json:"header"`
}
type HttpRequest ¶
type Sing ¶
type Sing struct {
// contains filtered or unexported fields
}
func (*Sing) GetUserTraffic ¶
func (*Sing) GetUserTrafficSlice ¶
type UserDeleter ¶
type WsNetworkConfig ¶
Click to show internal directories.
Click to hide internal directories.