spb

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_strings_proto protoreflect.FileDescriptor
View Source
var StringsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spb.StringsService",
	HandlerType: (*StringsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Reverse",
			Handler:    _StringsService_Reverse_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReverseStream",
			Handler:       _StringsService_ReverseStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "strings.proto",
}

StringsService_ServiceDesc is the grpc.ServiceDesc for StringsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStringsServiceServer

func RegisterStringsServiceServer(s grpc.ServiceRegistrar, srv StringsServiceServer)

Types

type Message

type Message struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

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 StringsServiceClient

type StringsServiceClient interface {
	Reverse(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
	ReverseStream(ctx context.Context, opts ...grpc.CallOption) (StringsService_ReverseStreamClient, error)
}

StringsServiceClient is the client API for StringsService 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 StringsServiceServer

type StringsServiceServer interface {
	Reverse(context.Context, *Message) (*Message, error)
	ReverseStream(StringsService_ReverseStreamServer) error
	// contains filtered or unexported methods
}

StringsServiceServer is the server API for StringsService service. All implementations must embed UnimplementedStringsServiceServer for forward compatibility

type StringsService_ReverseStreamClient

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

type StringsService_ReverseStreamServer

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

type UnimplementedStringsServiceServer

type UnimplementedStringsServiceServer struct {
}

UnimplementedStringsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStringsServiceServer) Reverse

func (UnimplementedStringsServiceServer) ReverseStream

type UnsafeStringsServiceServer

type UnsafeStringsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeStringsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StringsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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