Documentation
¶
Index ¶
- Constants
- func AddCrawlerNode(c *fiber.Ctx) error
- func AddNode(c *fiber.Ctx) error
- func ChangePassword(c *fiber.Ctx) error
- func CheckUsable(c *fiber.Ctx) error
- func InitHttpService() (bool, error)
- func InitStorage() error
- func InitWs(app *fiber.App) error
- func NodeList(ctx *fiber.Ctx) error
- func Pac(c *fiber.Ctx) error
- func Registration(c *fiber.Ctx) error
- func SubClash(c *fiber.Ctx) error
- func SubV2ray(c *fiber.Ctx) error
- func SyncNode(c *fiber.Ctx) error
- func Version(c *fiber.Ctx) error
- type AddCrawlerNodeReq
- type AddNodeReq
- type Init
- type SubClashReq
- type SubV2rayReq
- type WsClient
- type WsClientDispatch
Constants ¶
View Source
const ( SessionKeyUid = "Uid" SessionKeyUserKey = "UserKey" SessionKeyUserIp = "UserIp" )
Variables ¶
This section is empty.
Functions ¶
func AddCrawlerNode ¶
func AddCrawlerNode(c *fiber.Ctx) error
func ChangePassword ¶
func ChangePassword(c *fiber.Ctx) error
func CheckUsable ¶
func CheckUsable(c *fiber.Ctx) error
func InitHttpService ¶
func InitStorage ¶
func InitStorage() error
func Registration ¶
func Registration(c *fiber.Ctx) error
Types ¶
type AddCrawlerNodeReq ¶
type AddNodeReq ¶
type AddNodeReq struct {
NodeUrl string `json:"node_url" validate:"required"`
}
type SubClashReq ¶
type SubClashReq struct { Limit *int `json:"limit" query:"limit" yaml:"limit" default:"50"` DnsServiceList []string `json:"dns_service_list" query:"dns_service_list" yaml:"dns_service_list"` EnableIpv6 *bool `json:"enable_ipv6" query:"enable_ipv6" yaml:"enable_ipv6"` CheckProxy *bool `json:"check_proxy" query:"check_proxy" yaml:"check_proxy"` }
type SubV2rayReq ¶
type SubV2rayReq struct {
Limit *int `json:"limit" query:"limit" yaml:"limit" default:"50"`
}
type WsClient ¶
type WsClient struct {
// contains filtered or unexported fields
}
func NewWsClient ¶
func NewWsClient(c *websocket.Conn) *WsClient
func (*WsClient) RecvMsgForever ¶
func (p *WsClient) RecvMsgForever()
type WsClientDispatch ¶
type WsClientDispatch struct {
// contains filtered or unexported fields
}
func NewWsClientDispatch ¶
func NewWsClientDispatch() *WsClientDispatch
func (*WsClientDispatch) Add ¶
func (p *WsClientDispatch) Add(c *websocket.Conn) error
func (*WsClientDispatch) OnClose ¶
func (p *WsClientDispatch) OnClose(clientId string)
Click to show internal directories.
Click to hide internal directories.