Documentation
¶
Index ¶
- Variables
- func RegisterNodeObjServer(s grpc.ServiceRegistrar, srv NodeObjServer)
- type NodeObjClient
- type NodeObjServer
- type PatchServerReq
- func (*PatchServerReq) Descriptor() ([]byte, []int)deprecated
- func (x *PatchServerReq) GetConfig() string
- func (x *PatchServerReq) GetIp() string
- func (x *PatchServerReq) GetPid() string
- func (x *PatchServerReq) GetPort() string
- func (x *PatchServerReq) GetServerName() string
- func (x *PatchServerReq) GetVersion() string
- func (*PatchServerReq) ProtoMessage()
- func (x *PatchServerReq) ProtoReflect() protoreflect.Message
- func (x *PatchServerReq) Reset()
- func (x *PatchServerReq) String() string
- type PatchServerRes
- type ReStartServerReq
- func (*ReStartServerReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReStartServerReq) GetIp() string
- func (x *ReStartServerReq) GetPid() string
- func (x *ReStartServerReq) GetPort() string
- func (x *ReStartServerReq) GetServerName() string
- func (*ReStartServerReq) ProtoMessage()
- func (x *ReStartServerReq) ProtoReflect() protoreflect.Message
- func (x *ReStartServerReq) Reset()
- func (x *ReStartServerReq) String() string
- type ReStartServerRes
- type SetServerLogLevelReq
- func (*SetServerLogLevelReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetServerLogLevelReq) GetIp() string
- func (x *SetServerLogLevelReq) GetLevel() string
- func (x *SetServerLogLevelReq) GetPort() string
- func (x *SetServerLogLevelReq) GetServerName() string
- func (*SetServerLogLevelReq) ProtoMessage()
- func (x *SetServerLogLevelReq) ProtoReflect() protoreflect.Message
- func (x *SetServerLogLevelReq) Reset()
- func (x *SetServerLogLevelReq) String() string
- type SetServerLogLevelRes
- type StopServerReq
- func (*StopServerReq) Descriptor() ([]byte, []int)deprecated
- func (x *StopServerReq) GetIp() string
- func (x *StopServerReq) GetPid() string
- func (x *StopServerReq) GetPort() string
- func (x *StopServerReq) GetServerName() string
- func (*StopServerReq) ProtoMessage()
- func (x *StopServerReq) ProtoReflect() protoreflect.Message
- func (x *StopServerReq) Reset()
- func (x *StopServerReq) String() string
- type StopServerRes
- type UnimplementedNodeObjServer
- func (UnimplementedNodeObjServer) PatchServer(context.Context, *PatchServerReq) (*PatchServerRes, error)
- func (UnimplementedNodeObjServer) ReStartServer(context.Context, *ReStartServerReq) (*ReStartServerRes, error)
- func (UnimplementedNodeObjServer) SetServerLogLevel(context.Context, *SetServerLogLevelReq) (*SetServerLogLevelRes, error)
- func (UnimplementedNodeObjServer) StopServer(context.Context, *StopServerReq) (*StopServerRes, error)
- type UnsafeNodeObjServer
Constants ¶
This section is empty.
Variables ¶
var File_node_proto protoreflect.FileDescriptor
var NodeObj_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.NodeObj", HandlerType: (*NodeObjServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PatchServer", Handler: _NodeObj_PatchServer_Handler, }, { MethodName: "ReStartServer", Handler: _NodeObj_ReStartServer_Handler, }, { MethodName: "StopServer", Handler: _NodeObj_StopServer_Handler, }, { MethodName: "SetServerLogLevel", Handler: _NodeObj_SetServerLogLevel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "node.proto", }
NodeObj_ServiceDesc is the grpc.ServiceDesc for NodeObj service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeObjServer ¶
func RegisterNodeObjServer(s grpc.ServiceRegistrar, srv NodeObjServer)
Types ¶
type NodeObjClient ¶
type NodeObjClient interface { // 发布服务 PatchServer(ctx context.Context, in *PatchServerReq, opts ...grpc.CallOption) (*PatchServerRes, error) // 重启服务 ReStartServer(ctx context.Context, in *ReStartServerReq, opts ...grpc.CallOption) (*ReStartServerRes, error) // 停止服务 StopServer(ctx context.Context, in *StopServerReq, opts ...grpc.CallOption) (*StopServerRes, error) // 设置日志级别 SetServerLogLevel(ctx context.Context, in *SetServerLogLevelReq, opts ...grpc.CallOption) (*SetServerLogLevelRes, error) }
NodeObjClient is the client API for NodeObj service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNodeObjClient ¶
func NewNodeObjClient(cc grpc.ClientConnInterface) NodeObjClient
type NodeObjServer ¶
type NodeObjServer interface { // 发布服务 PatchServer(context.Context, *PatchServerReq) (*PatchServerRes, error) // 重启服务 ReStartServer(context.Context, *ReStartServerReq) (*ReStartServerRes, error) // 停止服务 StopServer(context.Context, *StopServerReq) (*StopServerRes, error) // 设置日志级别 SetServerLogLevel(context.Context, *SetServerLogLevelReq) (*SetServerLogLevelRes, error) // contains filtered or unexported methods }
NodeObjServer is the server API for NodeObj service. All implementations must embed UnimplementedNodeObjServer for forward compatibility
type PatchServerReq ¶
type PatchServerReq struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` Pid string `protobuf:"bytes,4,opt,name=pid,proto3" json:"pid,omitempty"` Config string `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*PatchServerReq) Descriptor
deprecated
func (*PatchServerReq) Descriptor() ([]byte, []int)
Deprecated: Use PatchServerReq.ProtoReflect.Descriptor instead.
func (*PatchServerReq) GetConfig ¶
func (x *PatchServerReq) GetConfig() string
func (*PatchServerReq) GetIp ¶
func (x *PatchServerReq) GetIp() string
func (*PatchServerReq) GetPid ¶
func (x *PatchServerReq) GetPid() string
func (*PatchServerReq) GetPort ¶
func (x *PatchServerReq) GetPort() string
func (*PatchServerReq) GetServerName ¶
func (x *PatchServerReq) GetServerName() string
func (*PatchServerReq) GetVersion ¶
func (x *PatchServerReq) GetVersion() string
func (*PatchServerReq) ProtoMessage ¶
func (*PatchServerReq) ProtoMessage()
func (*PatchServerReq) ProtoReflect ¶
func (x *PatchServerReq) ProtoReflect() protoreflect.Message
func (*PatchServerReq) Reset ¶
func (x *PatchServerReq) Reset()
func (*PatchServerReq) String ¶
func (x *PatchServerReq) String() string
type PatchServerRes ¶
type PatchServerRes struct {
// contains filtered or unexported fields
}
func (*PatchServerRes) Descriptor
deprecated
func (*PatchServerRes) Descriptor() ([]byte, []int)
Deprecated: Use PatchServerRes.ProtoReflect.Descriptor instead.
func (*PatchServerRes) ProtoMessage ¶
func (*PatchServerRes) ProtoMessage()
func (*PatchServerRes) ProtoReflect ¶
func (x *PatchServerRes) ProtoReflect() protoreflect.Message
func (*PatchServerRes) Reset ¶
func (x *PatchServerRes) Reset()
func (*PatchServerRes) String ¶
func (x *PatchServerRes) String() string
type ReStartServerReq ¶
type ReStartServerReq struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` Pid string `protobuf:"bytes,4,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*ReStartServerReq) Descriptor
deprecated
func (*ReStartServerReq) Descriptor() ([]byte, []int)
Deprecated: Use ReStartServerReq.ProtoReflect.Descriptor instead.
func (*ReStartServerReq) GetIp ¶
func (x *ReStartServerReq) GetIp() string
func (*ReStartServerReq) GetPid ¶
func (x *ReStartServerReq) GetPid() string
func (*ReStartServerReq) GetPort ¶
func (x *ReStartServerReq) GetPort() string
func (*ReStartServerReq) GetServerName ¶
func (x *ReStartServerReq) GetServerName() string
func (*ReStartServerReq) ProtoMessage ¶
func (*ReStartServerReq) ProtoMessage()
func (*ReStartServerReq) ProtoReflect ¶
func (x *ReStartServerReq) ProtoReflect() protoreflect.Message
func (*ReStartServerReq) Reset ¶
func (x *ReStartServerReq) Reset()
func (*ReStartServerReq) String ¶
func (x *ReStartServerReq) String() string
type ReStartServerRes ¶
type ReStartServerRes struct {
// contains filtered or unexported fields
}
func (*ReStartServerRes) Descriptor
deprecated
func (*ReStartServerRes) Descriptor() ([]byte, []int)
Deprecated: Use ReStartServerRes.ProtoReflect.Descriptor instead.
func (*ReStartServerRes) ProtoMessage ¶
func (*ReStartServerRes) ProtoMessage()
func (*ReStartServerRes) ProtoReflect ¶
func (x *ReStartServerRes) ProtoReflect() protoreflect.Message
func (*ReStartServerRes) Reset ¶
func (x *ReStartServerRes) Reset()
func (*ReStartServerRes) String ¶
func (x *ReStartServerRes) String() string
type SetServerLogLevelReq ¶
type SetServerLogLevelReq struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*SetServerLogLevelReq) Descriptor
deprecated
func (*SetServerLogLevelReq) Descriptor() ([]byte, []int)
Deprecated: Use SetServerLogLevelReq.ProtoReflect.Descriptor instead.
func (*SetServerLogLevelReq) GetIp ¶
func (x *SetServerLogLevelReq) GetIp() string
func (*SetServerLogLevelReq) GetLevel ¶
func (x *SetServerLogLevelReq) GetLevel() string
func (*SetServerLogLevelReq) GetPort ¶
func (x *SetServerLogLevelReq) GetPort() string
func (*SetServerLogLevelReq) GetServerName ¶
func (x *SetServerLogLevelReq) GetServerName() string
func (*SetServerLogLevelReq) ProtoMessage ¶
func (*SetServerLogLevelReq) ProtoMessage()
func (*SetServerLogLevelReq) ProtoReflect ¶
func (x *SetServerLogLevelReq) ProtoReflect() protoreflect.Message
func (*SetServerLogLevelReq) Reset ¶
func (x *SetServerLogLevelReq) Reset()
func (*SetServerLogLevelReq) String ¶
func (x *SetServerLogLevelReq) String() string
type SetServerLogLevelRes ¶
type SetServerLogLevelRes struct {
// contains filtered or unexported fields
}
func (*SetServerLogLevelRes) Descriptor
deprecated
func (*SetServerLogLevelRes) Descriptor() ([]byte, []int)
Deprecated: Use SetServerLogLevelRes.ProtoReflect.Descriptor instead.
func (*SetServerLogLevelRes) ProtoMessage ¶
func (*SetServerLogLevelRes) ProtoMessage()
func (*SetServerLogLevelRes) ProtoReflect ¶
func (x *SetServerLogLevelRes) ProtoReflect() protoreflect.Message
func (*SetServerLogLevelRes) Reset ¶
func (x *SetServerLogLevelRes) Reset()
func (*SetServerLogLevelRes) String ¶
func (x *SetServerLogLevelRes) String() string
type StopServerReq ¶
type StopServerReq struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` Pid string `protobuf:"bytes,4,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*StopServerReq) Descriptor
deprecated
func (*StopServerReq) Descriptor() ([]byte, []int)
Deprecated: Use StopServerReq.ProtoReflect.Descriptor instead.
func (*StopServerReq) GetIp ¶
func (x *StopServerReq) GetIp() string
func (*StopServerReq) GetPid ¶
func (x *StopServerReq) GetPid() string
func (*StopServerReq) GetPort ¶
func (x *StopServerReq) GetPort() string
func (*StopServerReq) GetServerName ¶
func (x *StopServerReq) GetServerName() string
func (*StopServerReq) ProtoMessage ¶
func (*StopServerReq) ProtoMessage()
func (*StopServerReq) ProtoReflect ¶
func (x *StopServerReq) ProtoReflect() protoreflect.Message
func (*StopServerReq) Reset ¶
func (x *StopServerReq) Reset()
func (*StopServerReq) String ¶
func (x *StopServerReq) String() string
type StopServerRes ¶
type StopServerRes struct {
// contains filtered or unexported fields
}
func (*StopServerRes) Descriptor
deprecated
func (*StopServerRes) Descriptor() ([]byte, []int)
Deprecated: Use StopServerRes.ProtoReflect.Descriptor instead.
func (*StopServerRes) ProtoMessage ¶
func (*StopServerRes) ProtoMessage()
func (*StopServerRes) ProtoReflect ¶
func (x *StopServerRes) ProtoReflect() protoreflect.Message
func (*StopServerRes) Reset ¶
func (x *StopServerRes) Reset()
func (*StopServerRes) String ¶
func (x *StopServerRes) String() string
type UnimplementedNodeObjServer ¶
type UnimplementedNodeObjServer struct { }
UnimplementedNodeObjServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeObjServer) PatchServer ¶
func (UnimplementedNodeObjServer) PatchServer(context.Context, *PatchServerReq) (*PatchServerRes, error)
func (UnimplementedNodeObjServer) ReStartServer ¶
func (UnimplementedNodeObjServer) ReStartServer(context.Context, *ReStartServerReq) (*ReStartServerRes, error)
func (UnimplementedNodeObjServer) SetServerLogLevel ¶
func (UnimplementedNodeObjServer) SetServerLogLevel(context.Context, *SetServerLogLevelReq) (*SetServerLogLevelRes, error)
func (UnimplementedNodeObjServer) StopServer ¶
func (UnimplementedNodeObjServer) StopServer(context.Context, *StopServerReq) (*StopServerRes, error)
type UnsafeNodeObjServer ¶
type UnsafeNodeObjServer interface {
// contains filtered or unexported methods
}
UnsafeNodeObjServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeObjServer will result in compilation errors.