server

package
v1.14.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerConfigHandler

func GetServerConfigHandler(svcCtx *svc.ServiceContext) 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(svcCtx *svc.ServiceContext) 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(svcCtx *svc.ServiceContext) 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 added in v1.1.0

func QueryServerProtocolConfigHandler(svcCtx *svc.ServiceContext) 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 added in v1.2.14

func ServerMiddleware(svcCtx *svc.ServiceContext) app.HandlerFunc

func ServerPushStatusHandler

func ServerPushStatusHandler(svcCtx *svc.ServiceContext) 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(svcCtx *svc.ServiceContext) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL