client

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: AGPL-3.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChildClientForServer added in v0.1.0

func ChildClientForServer(c *app.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, bool, error)

ChildClientForServer 支持传入serverID和任意类型client,返回serverID对应的client in shadow,如果不存在则新建 bool 表示是否新建

func DeleteClientHandler

func DeleteClientHandler(ctx *app.Context, req *pb.DeleteClientRequest) (*pb.DeleteClientResponse, error)

func GetClientHandler

func GetClientHandler(ctx *app.Context, req *pb.GetClientRequest) (*pb.GetClientResponse, error)

func InitClientHandler

func InitClientHandler(c *app.Context, req *pb.InitClientRequest) (*pb.InitClientResponse, error)

func ListClientsHandler

func ListClientsHandler(ctx *app.Context, req *pb.ListClientsRequest) (*pb.ListClientsResponse, error)

func MakeClientShadowed added in v0.1.0

func MakeClientShadowed(c *app.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, error)

func RPCPullConfig

func RPCPullConfig(ctx *app.Context, req *pb.PullClientConfigReq) (*pb.PullClientConfigResp, error)

func RemoveFrpcHandler

func RemoveFrpcHandler(c *app.Context, req *pb.RemoveFRPCRequest) (*pb.RemoveFRPCResponse, error)

func StartFRPCHandler

func StartFRPCHandler(ctx *app.Context, req *pb.StartFRPCRequest) (*pb.StartFRPCResponse, error)

func StopFRPCHandler

func StopFRPCHandler(ctx *app.Context, req *pb.StopFRPCRequest) (*pb.StopFRPCResponse, error)

func SyncTunnel

func SyncTunnel(ctx *app.Context, userInfo models.UserInfo) error

func UpdateFrpcHander

func UpdateFrpcHander(c *app.Context, req *pb.UpdateFRPCRequest) (*pb.UpdateFRPCResponse, error)

func UpgradeFrppHandler added in v0.1.35

func UpgradeFrppHandler(ctx *app.Context, req *pb.UpgradeFrppRequest) (*pb.UpgradeFrppResponse, error)

func ValidFrpsScheme added in v0.1.11

func ValidFrpsScheme(scheme string) bool

func ValidateClientRequest

func ValidateClientRequest(ctx *app.Context, req ValidateableClientRequest) (*models.ClientEntity, error)

func ValidateFrpsUrl added in v0.1.11

func ValidateFrpsUrl(urlStr string) (*url.URL, error)

Types

type ValidateableClientRequest

type ValidateableClientRequest interface {
	GetClientSecret() string
	GetClientId() string
}

Jump to

Keyboard shortcuts

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