Documentation ¶
Index ¶
- Variables
- func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)
- type NodeRequest
- func (*NodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeRequest) GetContainers() string
- func (x *NodeRequest) GetInfo() string
- func (x *NodeRequest) GetName() string
- func (*NodeRequest) ProtoMessage()
- func (x *NodeRequest) ProtoReflect() protoreflect.Message
- func (x *NodeRequest) Reset()
- func (x *NodeRequest) String() string
- type NodeResponse
- type NodeServiceClient
- type NodeServiceServer
- type UnimplementedNodeServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_node_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNodeServiceServer ¶
func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)
Types ¶
type NodeRequest ¶
type NodeRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Info string `protobuf:"bytes,2,opt,name=Info,proto3" json:"Info,omitempty"` Containers string `protobuf:"bytes,3,opt,name=Containers,proto3" json:"Containers,omitempty"` // contains filtered or unexported fields }
func (*NodeRequest) Descriptor
deprecated
func (*NodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeRequest.ProtoReflect.Descriptor instead.
func (*NodeRequest) GetContainers ¶
func (x *NodeRequest) GetContainers() string
func (*NodeRequest) GetInfo ¶
func (x *NodeRequest) GetInfo() string
func (*NodeRequest) GetName ¶
func (x *NodeRequest) GetName() string
func (*NodeRequest) ProtoMessage ¶
func (*NodeRequest) ProtoMessage()
func (*NodeRequest) ProtoReflect ¶
func (x *NodeRequest) ProtoReflect() protoreflect.Message
func (*NodeRequest) Reset ¶
func (x *NodeRequest) Reset()
func (*NodeRequest) String ¶
func (x *NodeRequest) String() string
type NodeResponse ¶
type NodeResponse struct { Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"` // contains filtered or unexported fields }
func (*NodeResponse) Descriptor
deprecated
func (*NodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use NodeResponse.ProtoReflect.Descriptor instead.
func (*NodeResponse) GetSuccess ¶
func (x *NodeResponse) GetSuccess() bool
func (*NodeResponse) ProtoMessage ¶
func (*NodeResponse) ProtoMessage()
func (*NodeResponse) ProtoReflect ¶
func (x *NodeResponse) ProtoReflect() protoreflect.Message
func (*NodeResponse) Reset ¶
func (x *NodeResponse) Reset()
func (*NodeResponse) String ¶
func (x *NodeResponse) String() string
type NodeServiceClient ¶
type NodeServiceClient interface { // 定义函数 Push(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*NodeResponse, error) }
NodeServiceClient is the client API for NodeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNodeServiceClient ¶
func NewNodeServiceClient(cc grpc.ClientConnInterface) NodeServiceClient
type NodeServiceServer ¶
type NodeServiceServer interface { // 定义函数 Push(context.Context, *NodeRequest) (*NodeResponse, error) }
NodeServiceServer is the server API for NodeService service.
type UnimplementedNodeServiceServer ¶
type UnimplementedNodeServiceServer struct { }
UnimplementedNodeServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNodeServiceServer) Push ¶
func (*UnimplementedNodeServiceServer) Push(context.Context, *NodeRequest) (*NodeResponse, error)
Click to show internal directories.
Click to hide internal directories.