Documentation ¶
Index ¶
- func ChildClientForServer(c context.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, error)
- func DeleteClientHandler(ctx context.Context, req *pb.DeleteClientRequest) (*pb.DeleteClientResponse, error)
- func GetClientHandler(ctx context.Context, req *pb.GetClientRequest) (*pb.GetClientResponse, error)
- func InitClientHandler(c context.Context, req *pb.InitClientRequest) (*pb.InitClientResponse, error)
- func ListClientsHandler(ctx context.Context, req *pb.ListClientsRequest) (*pb.ListClientsResponse, error)
- func MakeClientShadowed(c context.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, error)
- func RPCPullConfig(ctx context.Context, req *pb.PullClientConfigReq) (*pb.PullClientConfigResp, error)
- func RemoveFrpcHandler(c context.Context, req *pb.RemoveFRPCRequest) (*pb.RemoveFRPCResponse, error)
- func StartFRPCHandler(ctx context.Context, req *pb.StartFRPCRequest) (*pb.StartFRPCResponse, error)
- func StopFRPCHandler(ctx context.Context, req *pb.StopFRPCRequest) (*pb.StopFRPCResponse, error)
- func SyncTunnel(ctx context.Context, userInfo models.UserInfo) error
- func UpdateFrpcHander(c context.Context, req *pb.UpdateFRPCRequest) (*pb.UpdateFRPCResponse, error)
- func ValidateClientRequest(req ValidateableClientRequest) (*models.ClientEntity, error)
- type ValidateableClientRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChildClientForServer ¶ added in v0.1.0
func ChildClientForServer(c context.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, error)
ChildClientForServer 支持传入serverID和任意类型client,返回serverID对应的client in shadow,如果不存在则新建
func DeleteClientHandler ¶
func DeleteClientHandler(ctx context.Context, req *pb.DeleteClientRequest) (*pb.DeleteClientResponse, error)
func GetClientHandler ¶
func GetClientHandler(ctx context.Context, req *pb.GetClientRequest) (*pb.GetClientResponse, error)
func InitClientHandler ¶
func InitClientHandler(c context.Context, req *pb.InitClientRequest) (*pb.InitClientResponse, error)
func ListClientsHandler ¶
func ListClientsHandler(ctx context.Context, req *pb.ListClientsRequest) (*pb.ListClientsResponse, error)
func MakeClientShadowed ¶ added in v0.1.0
func MakeClientShadowed(c context.Context, serverID string, clientEntity *models.ClientEntity) (*models.ClientEntity, error)
func RPCPullConfig ¶
func RPCPullConfig(ctx context.Context, req *pb.PullClientConfigReq) (*pb.PullClientConfigResp, error)
func RemoveFrpcHandler ¶
func RemoveFrpcHandler(c context.Context, req *pb.RemoveFRPCRequest) (*pb.RemoveFRPCResponse, error)
func StartFRPCHandler ¶
func StartFRPCHandler(ctx context.Context, req *pb.StartFRPCRequest) (*pb.StartFRPCResponse, error)
func StopFRPCHandler ¶
func StopFRPCHandler(ctx context.Context, req *pb.StopFRPCRequest) (*pb.StopFRPCResponse, error)
func UpdateFrpcHander ¶
func UpdateFrpcHander(c context.Context, req *pb.UpdateFRPCRequest) (*pb.UpdateFRPCResponse, error)
func ValidateClientRequest ¶
func ValidateClientRequest(req ValidateableClientRequest) (*models.ClientEntity, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.