Documentation
¶
Index ¶
- func GetServerConfigHandler(service network.Service) app.HandlerFunc
- func GetServerUserListHandler(service network.Service) app.HandlerFunc
- func PushOnlineUsersHandler(service network.Service) app.HandlerFunc
- func QueryServerProtocolConfigHandler(service network.Service, nodeSecret func() string) app.HandlerFunc
- func ServerMiddleware(nodeSecret func() string) app.HandlerFunc
- func ServerPushStatusHandler(service network.Service) app.HandlerFunc
- func ServerPushUserTrafficHandler(service network.Service) app.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServerConfigHandler ¶
func GetServerConfigHandler(service network.Service) app.HandlerFunc
GetServerConfigHandler documents Get server config.
@Summary Get server config @Tags node @Accept json @Produce json,application/protobuf @Security NodeSecret @Param request query dto.GetServerConfigRequest false "Request parameters" @Success 200 {object} dto.GetServerConfigResponse @Router /v1/server/config [get]
func GetServerUserListHandler ¶
func GetServerUserListHandler(service network.Service) app.HandlerFunc
GetServerUserListHandler documents Get user list.
@Summary Get user list @Tags node @Accept json @Produce json,application/protobuf @Security NodeSecret @Param request query dto.GetServerUserListRequest false "Request parameters" @Success 200 {object} dto.GetServerUserListResponse @Router /v1/server/user [get]
func PushOnlineUsersHandler ¶
func PushOnlineUsersHandler(service network.Service) app.HandlerFunc
PushOnlineUsersHandler documents Push online users.
@Summary Push online users @Tags node @Accept json,application/protobuf @Produce json,application/protobuf @Security NodeSecret @Param request body dto.OnlineUsersRequest true "Request parameters" @Success 200 {object} result.ResponseSuccessBean @Router /v1/server/online [post]
func QueryServerProtocolConfigHandler ¶
func QueryServerProtocolConfigHandler(service network.Service, nodeSecret func() string) app.HandlerFunc
QueryServerProtocolConfigHandler documents Get Server Protocol Config.
@Summary Get Server Protocol Config @Tags node @Produce json,application/protobuf @Security NodeSecret @Param server_id path int true "Server ID" @Param protocols query []string false "Protocols to include" collectionFormat(multi) @Success 200 {object} result.ResponseSuccessBean{data=dto.QueryServerConfigResponse} @Router /v2/server/{server_id} [get]
func ServerMiddleware ¶
func ServerMiddleware(nodeSecret func() string) app.HandlerFunc
func ServerPushStatusHandler ¶
func ServerPushStatusHandler(service network.Service) app.HandlerFunc
ServerPushStatusHandler documents Push server status.
@Summary Push server status @Tags node @Accept json,application/protobuf @Produce json,application/protobuf @Security NodeSecret @Param request body dto.ServerPushStatusRequest true "Request parameters" @Success 200 {object} result.ResponseSuccessBean @Router /v1/server/status [post]
func ServerPushUserTrafficHandler ¶
func ServerPushUserTrafficHandler(service network.Service) app.HandlerFunc
ServerPushUserTrafficHandler documents Push user Traffic.
@Summary Push user Traffic @Tags node @Accept json,application/protobuf @Produce json,application/protobuf @Security NodeSecret @Param request body dto.ServerPushUserTrafficRequest true "Request parameters" @Success 200 {object} result.ResponseSuccessBean @Router /v1/server/push [post]
Types ¶
This section is empty.