Documentation ¶
Index ¶
- Variables
- func RegisterBackendServiceServer(s grpc.ServiceRegistrar, srv BackendServiceServer)
- type BackendServiceClient
- type BackendServiceServer
- type BackendService_RequestStreamClient
- type BackendService_RequestStreamServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (m *Message) GetBody() isMessage_Body
- func (x *Message) GetBytesBody() []byte
- func (x *Message) GetListBody() *structpb.ListValue
- func (x *Message) GetNullBody() structpb.NullValue
- func (x *Message) GetStructBody() *structpb.Struct
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_BytesBody
- type Message_ListBody
- type Message_NullBody
- type Message_StructBody
- type UnimplementedBackendServiceServer
- type UnsafeBackendServiceServer
Constants ¶
This section is empty.
Variables ¶
var BackendService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "isp.BackendService", HandlerType: (*BackendServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Request", Handler: _BackendService_Request_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "RequestStream", Handler: _BackendService_RequestStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "backed_service.proto", }
BackendService_ServiceDesc is the grpc.ServiceDesc for BackendService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_backed_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBackendServiceServer ¶
func RegisterBackendServiceServer(s grpc.ServiceRegistrar, srv BackendServiceServer)
Types ¶
type BackendServiceClient ¶
type BackendServiceClient interface { // ===== SYSTEM ===== Request(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) RequestStream(ctx context.Context, opts ...grpc.CallOption) (BackendService_RequestStreamClient, error) }
BackendServiceClient is the client API for BackendService 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 NewBackendServiceClient ¶
func NewBackendServiceClient(cc grpc.ClientConnInterface) BackendServiceClient
type BackendServiceServer ¶
type BackendServiceServer interface { // ===== SYSTEM ===== Request(context.Context, *Message) (*Message, error) RequestStream(BackendService_RequestStreamServer) error // contains filtered or unexported methods }
BackendServiceServer is the server API for BackendService service. All implementations must embed UnimplementedBackendServiceServer for forward compatibility
type Message ¶
type Message struct { // Types that are assignable to Body: // // *Message_StructBody // *Message_ListBody // *Message_NullBody // *Message_BytesBody Body isMessage_Body `protobuf_oneof:"body"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetBytesBody ¶
func (*Message) GetListBody ¶
func (*Message) GetNullBody ¶
func (*Message) GetStructBody ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_BytesBody ¶
type Message_BytesBody struct {
BytesBody []byte `protobuf:"bytes,4,opt,name=BytesBody,proto3,oneof"`
}
type Message_ListBody ¶
type Message_NullBody ¶
type Message_StructBody ¶
type UnimplementedBackendServiceServer ¶
type UnimplementedBackendServiceServer struct { }
UnimplementedBackendServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBackendServiceServer) RequestStream ¶
func (UnimplementedBackendServiceServer) RequestStream(BackendService_RequestStreamServer) error
type UnsafeBackendServiceServer ¶
type UnsafeBackendServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBackendServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackendServiceServer will result in compilation errors.