Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Comm_ServiceDesc = grpc.ServiceDesc{ ServiceName: "comm.Comm", HandlerType: (*CommServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "OpenComm", Handler: _Comm_OpenComm_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "comm.proto", }
Comm_ServiceDesc is the grpc.ServiceDesc for Comm service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_comm_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommServer ¶
func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)
Types ¶
type CommClient ¶
type CommClient interface {
OpenComm(ctx context.Context, opts ...grpc.CallOption) (Comm_OpenCommClient, error)
}
CommClient is the client API for Comm 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 NewCommClient ¶
func NewCommClient(cc grpc.ClientConnInterface) CommClient
type CommServer ¶
type CommServer interface { OpenComm(Comm_OpenCommServer) error // contains filtered or unexported methods }
CommServer is the server API for Comm service. All implementations must embed UnimplementedCommServer for forward compatibility
type Comm_OpenCommClient ¶
type Comm_OpenCommServer ¶
type Command ¶
type Command struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Arg string `protobuf:"bytes,2,opt,name=arg,proto3" json:"arg,omitempty"` // contains filtered or unexported fields }
func (*Command) Descriptor
deprecated
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type UnimplementedCommServer ¶
type UnimplementedCommServer struct { }
UnimplementedCommServer must be embedded to have forward compatible implementations.
func (UnimplementedCommServer) OpenComm ¶
func (UnimplementedCommServer) OpenComm(Comm_OpenCommServer) error
type UnsafeCommServer ¶
type UnsafeCommServer interface {
// contains filtered or unexported methods
}
UnsafeCommServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommServer will result in compilation errors.