node

package
v0.0.0-...-6cf1638 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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.

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

Jump to

Keyboard shortcuts

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