Documentation
¶
Index ¶
- Variables
- func RegisterServerProtoServer(s grpc.ServiceRegistrar, srv ServerProtoServer)
- type ServerProtoClient
- type ServerProtoServer
- type ServerReply
- type ServerRequest
- func (*ServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerRequest) GetKind() string
- func (x *ServerRequest) GetName() string
- func (x *ServerRequest) GetTask() []*Task
- func (x *ServerRequest) GetType() string
- func (*ServerRequest) ProtoMessage()
- func (x *ServerRequest) ProtoReflect() protoreflect.Message
- func (x *ServerRequest) Reset()
- func (x *ServerRequest) String() string
- type Task
- type UnimplementedServerProtoServer
- type UnsafeServerProtoServer
Constants ¶
This section is empty.
Variables ¶
var File_server_proto_server_proto protoreflect.FileDescriptor
var ServerProto_ServiceDesc = grpc.ServiceDesc{ ServiceName: "server.ServerProto", HandlerType: (*ServerProtoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendServer", Handler: _ServerProto_SendServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server/proto/server.proto", }
ServerProto_ServiceDesc is the grpc.ServiceDesc for ServerProto service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerProtoServer ¶
func RegisterServerProtoServer(s grpc.ServiceRegistrar, srv ServerProtoServer)
Types ¶
type ServerProtoClient ¶
type ServerProtoClient interface {
SendServer(ctx context.Context, in *ServerRequest, opts ...grpc.CallOption) (*ServerReply, error)
}
ServerProtoClient is the client API for ServerProto 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 NewServerProtoClient ¶
func NewServerProtoClient(cc grpc.ClientConnInterface) ServerProtoClient
type ServerProtoServer ¶
type ServerProtoServer interface {
SendServer(context.Context, *ServerRequest) (*ServerReply, error)
// contains filtered or unexported methods
}
ServerProtoServer is the server API for ServerProto service. All implementations must embed UnimplementedServerProtoServer for forward compatibility
type ServerReply ¶
type ServerReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
The response message.
func (*ServerReply) Descriptor
deprecated
func (*ServerReply) Descriptor() ([]byte, []int)
Deprecated: Use ServerReply.ProtoReflect.Descriptor instead.
func (*ServerReply) GetMessage ¶
func (x *ServerReply) GetMessage() string
func (*ServerReply) ProtoMessage ¶
func (*ServerReply) ProtoMessage()
func (*ServerReply) ProtoReflect ¶
func (x *ServerReply) ProtoReflect() protoreflect.Message
func (*ServerReply) Reset ¶
func (x *ServerReply) Reset()
func (*ServerReply) String ¶
func (x *ServerReply) String() string
type ServerRequest ¶
type ServerRequest struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Task []*Task `protobuf:"bytes,4,rep,name=task,proto3" json:"task,omitempty"`
// contains filtered or unexported fields
}
The request message.
func (*ServerRequest) Descriptor
deprecated
func (*ServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerRequest.ProtoReflect.Descriptor instead.
func (*ServerRequest) GetKind ¶
func (x *ServerRequest) GetKind() string
func (*ServerRequest) GetName ¶
func (x *ServerRequest) GetName() string
func (*ServerRequest) GetTask ¶
func (x *ServerRequest) GetTask() []*Task
func (*ServerRequest) GetType ¶
func (x *ServerRequest) GetType() string
func (*ServerRequest) ProtoMessage ¶
func (*ServerRequest) ProtoMessage()
func (*ServerRequest) ProtoReflect ¶
func (x *ServerRequest) ProtoReflect() protoreflect.Message
func (*ServerRequest) Reset ¶
func (x *ServerRequest) Reset()
func (*ServerRequest) String ¶
func (x *ServerRequest) String() string
type Task ¶
type Task struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
Depend []string `protobuf:"bytes,3,rep,name=depend,proto3" json:"depend,omitempty"`
// contains filtered or unexported fields
}
func (*Task) Descriptor
deprecated
func (*Task) GetCommand ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedServerProtoServer ¶
type UnimplementedServerProtoServer struct {
}
UnimplementedServerProtoServer must be embedded to have forward compatible implementations.
func (UnimplementedServerProtoServer) SendServer ¶
func (UnimplementedServerProtoServer) SendServer(context.Context, *ServerRequest) (*ServerReply, error)
type UnsafeServerProtoServer ¶
type UnsafeServerProtoServer interface {
// contains filtered or unexported methods
}
UnsafeServerProtoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerProtoServer will result in compilation errors.