isp

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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 BackendService_RequestStreamClient

type BackendService_RequestStreamClient interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ClientStream
}

type BackendService_RequestStreamServer

type BackendService_RequestStreamServer interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

func (m *Message) GetBody() isMessage_Body

func (*Message) GetBytesBody

func (x *Message) GetBytesBody() []byte

func (*Message) GetListBody

func (x *Message) GetListBody() *structpb.ListValue

func (*Message) GetNullBody

func (x *Message) GetNullBody() structpb.NullValue

func (*Message) GetStructBody

func (x *Message) GetStructBody() *structpb.Struct

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_BytesBody

type Message_BytesBody struct {
	BytesBody []byte `protobuf:"bytes,4,opt,name=BytesBody,proto3,oneof"`
}

type Message_ListBody

type Message_ListBody struct {
	ListBody *structpb.ListValue `protobuf:"bytes,2,opt,name=listBody,proto3,oneof"`
}

type Message_NullBody

type Message_NullBody struct {
	NullBody structpb.NullValue `protobuf:"varint,3,opt,name=NullBody,proto3,enum=google.protobuf.NullValue,oneof"`
}

type Message_StructBody

type Message_StructBody struct {
	StructBody *structpb.Struct `protobuf:"bytes,1,opt,name=structBody,proto3,oneof"`
}

type UnimplementedBackendServiceServer

type UnimplementedBackendServiceServer struct {
}

UnimplementedBackendServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBackendServiceServer) Request

func (UnimplementedBackendServiceServer) RequestStream

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.

Jump to

Keyboard shortcuts

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