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() error
- func InitStorage(dbAddr string) (fiber.Storage, error)
- func InitWs(app *fiber.App) 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 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 InitHttpService() error
func InitStorage ¶
func Registration ¶
func Registration(c *fiber.Ctx) error
Types ¶
type AddCrawlerNodeReq ¶
type AddCrawlerNodeReq struct { NodeUrl string `json:"node_url" validate:"required"` CrawlerType domain.CrawlType `json:"crawler_type"` Rule *domain.CrawlerConf_Rule `json:"rule"` }
type AddNodeReq ¶
type AddNodeReq struct {
NodeUrl string `json:"node_url" validate:"required"`
}
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.