mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-20 01:30:25 +08:00
删除一直未实现的Unix协议相关内容
This commit is contained in:
@@ -31,7 +31,6 @@ const (
|
||||
ServerService_UpdateServerHTTPS_FullMethodName = "/pb.ServerService/updateServerHTTPS"
|
||||
ServerService_UpdateServerTCP_FullMethodName = "/pb.ServerService/updateServerTCP"
|
||||
ServerService_UpdateServerTLS_FullMethodName = "/pb.ServerService/updateServerTLS"
|
||||
ServerService_UpdateServerUnix_FullMethodName = "/pb.ServerService/updateServerUnix"
|
||||
ServerService_UpdateServerUDP_FullMethodName = "/pb.ServerService/updateServerUDP"
|
||||
ServerService_UpdateServerWeb_FullMethodName = "/pb.ServerService/updateServerWeb"
|
||||
ServerService_UpdateServerReverseProxy_FullMethodName = "/pb.ServerService/updateServerReverseProxy"
|
||||
@@ -114,8 +113,6 @@ type ServerServiceClient interface {
|
||||
UpdateServerTCP(ctx context.Context, in *UpdateServerTCPRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 修改网站的TLS设置
|
||||
UpdateServerTLS(ctx context.Context, in *UpdateServerTLSRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 修改网站的Unix设置
|
||||
UpdateServerUnix(ctx context.Context, in *UpdateServerUnixRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 修改网站的UDP设置
|
||||
UpdateServerUDP(ctx context.Context, in *UpdateServerUDPRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 修改网站的Web设置
|
||||
@@ -338,15 +335,6 @@ func (c *serverServiceClient) UpdateServerTLS(ctx context.Context, in *UpdateSer
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *serverServiceClient) UpdateServerUnix(ctx context.Context, in *UpdateServerUnixRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, ServerService_UpdateServerUnix_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *serverServiceClient) UpdateServerUDP(ctx context.Context, in *UpdateServerUDPRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, ServerService_UpdateServerUDP_FullMethodName, in, out, opts...)
|
||||
@@ -843,8 +831,6 @@ type ServerServiceServer interface {
|
||||
UpdateServerTCP(context.Context, *UpdateServerTCPRequest) (*RPCSuccess, error)
|
||||
// 修改网站的TLS设置
|
||||
UpdateServerTLS(context.Context, *UpdateServerTLSRequest) (*RPCSuccess, error)
|
||||
// 修改网站的Unix设置
|
||||
UpdateServerUnix(context.Context, *UpdateServerUnixRequest) (*RPCSuccess, error)
|
||||
// 修改网站的UDP设置
|
||||
UpdateServerUDP(context.Context, *UpdateServerUDPRequest) (*RPCSuccess, error)
|
||||
// 修改网站的Web设置
|
||||
@@ -991,9 +977,6 @@ func (UnimplementedServerServiceServer) UpdateServerTCP(context.Context, *Update
|
||||
func (UnimplementedServerServiceServer) UpdateServerTLS(context.Context, *UpdateServerTLSRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateServerTLS not implemented")
|
||||
}
|
||||
func (UnimplementedServerServiceServer) UpdateServerUnix(context.Context, *UpdateServerUnixRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateServerUnix not implemented")
|
||||
}
|
||||
func (UnimplementedServerServiceServer) UpdateServerUDP(context.Context, *UpdateServerUDPRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateServerUDP not implemented")
|
||||
}
|
||||
@@ -1378,24 +1361,6 @@ func _ServerService_UpdateServerTLS_Handler(srv interface{}, ctx context.Context
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ServerService_UpdateServerUnix_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateServerUnixRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ServerServiceServer).UpdateServerUnix(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ServerService_UpdateServerUnix_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ServerServiceServer).UpdateServerUnix(ctx, req.(*UpdateServerUnixRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ServerService_UpdateServerUDP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateServerUDPRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -2387,10 +2352,6 @@ var ServerService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "updateServerTLS",
|
||||
Handler: _ServerService_UpdateServerTLS_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateServerUnix",
|
||||
Handler: _ServerService_UpdateServerUnix_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateServerUDP",
|
||||
Handler: _ServerService_UpdateServerUDP_Handler,
|
||||
|
||||
Reference in New Issue
Block a user