Documentation ¶
Index ¶
- func HandleLogin(ctx *gin.Context) (interface{}, error)
- func HandleServerMessage(req *pb.ServerMessage) *pb.ClientMessage
- func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc
- func NewRouter() *gin.Engine
- func PullConfig(serverID, serverSecret string) error
- func RemoveFrpsHandler(ctx context.Context, req *pb.RemoveFRPSRequest) (*pb.RemoveFRPSResponse, error)
- func UpdateFrpsHander(ctx context.Context, req *pb.UpdateFRPSRequest) (*pb.UpdateFRPSResponse, error)
- type HTTPError
- type HandlerFunc
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleLogin ¶
func HandleServerMessage ¶
func HandleServerMessage(req *pb.ServerMessage) *pb.ClientMessage
func MakeGinHandlerFunc ¶
func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc
func PullConfig ¶
func RemoveFrpsHandler ¶
func RemoveFrpsHandler(ctx context.Context, req *pb.RemoveFRPSRequest) (*pb.RemoveFRPSResponse, error)
func UpdateFrpsHander ¶
func UpdateFrpsHander(ctx context.Context, req *pb.UpdateFRPSRequest) (*pb.UpdateFRPSResponse, error)
Types ¶
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.