server

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleLogin

func HandleLogin(ctx *gin.Context) (interface{}, error)

func HandleServerMessage

func HandleServerMessage(req *pb.ServerMessage) *pb.ClientMessage

func MakeGinHandlerFunc

func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc

func NewRouter

func NewRouter() *gin.Engine

func PullConfig

func PullConfig(serverID, serverSecret string) error

func PushProxyInfo added in v0.0.31

func PushProxyInfo(serverID, serverSecret string) error

func RemoveFrpsHandler

func RemoveFrpsHandler(ctx context.Context, req *pb.RemoveFRPSRequest) (*pb.RemoveFRPSResponse, error)

func StartPTYConnect added in v0.0.32

func StartPTYConnect(c context.Context, req *pb.CommonRequest) (*pb.CommonResponse, error)

func StartSteamLogHandler added in v0.0.32

func StartSteamLogHandler(ctx context.Context, req *pb.CommonRequest) (*pb.CommonResponse, error)

func StopSteamLogHandler added in v0.0.32

func StopSteamLogHandler(ctx context.Context, req *pb.CommonRequest) (*pb.CommonResponse, error)

func UpdateFrpsHander

func UpdateFrpsHander(ctx context.Context, req *pb.UpdateFRPSRequest) (*pb.UpdateFRPSResponse, error)

Types

type HTTPError

type HTTPError struct {
	Code int
	Err  error
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

type HandlerFunc

type HandlerFunc func(ctx *gin.Context) (interface{}, error)

type Response

type Response struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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