pb

package
v0.0.0-...-bfcc399 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_str_proto protoreflect.FileDescriptor
View Source
var StringService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.StringService",
	HandlerType: (*StringServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Diff",
			Handler:    _StringService_Diff_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/str.proto",
}

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

Functions

func RegisterStringServiceServer

func RegisterStringServiceServer(s grpc.ServiceRegistrar, srv StringServiceServer)

Types

type StringRequest

type StringRequest struct {
	RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
	A           string `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
	B           string `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*StringRequest) Descriptor deprecated

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

Deprecated: Use StringRequest.ProtoReflect.Descriptor instead.

func (*StringRequest) GetA

func (x *StringRequest) GetA() string

func (*StringRequest) GetB

func (x *StringRequest) GetB() string

func (*StringRequest) GetRequestType

func (x *StringRequest) GetRequestType() string

func (*StringRequest) ProtoMessage

func (*StringRequest) ProtoMessage()

func (*StringRequest) ProtoReflect

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

func (*StringRequest) Reset

func (x *StringRequest) Reset()

func (*StringRequest) String

func (x *StringRequest) String() string

type StringResponse

type StringResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Err    string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*StringResponse) Descriptor deprecated

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

Deprecated: Use StringResponse.ProtoReflect.Descriptor instead.

func (*StringResponse) GetErr

func (x *StringResponse) GetErr() string

func (*StringResponse) GetResult

func (x *StringResponse) GetResult() string

func (*StringResponse) ProtoMessage

func (*StringResponse) ProtoMessage()

func (*StringResponse) ProtoReflect

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

func (*StringResponse) Reset

func (x *StringResponse) Reset()

func (*StringResponse) String

func (x *StringResponse) String() string

type StringServiceClient

type StringServiceClient interface {
	Diff(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error)
}

StringServiceClient is the client API for StringService 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 StringServiceServer

type StringServiceServer interface {
	Diff(context.Context, *StringRequest) (*StringResponse, error)
	// contains filtered or unexported methods
}

StringServiceServer is the server API for StringService service. All implementations must embed UnimplementedStringServiceServer for forward compatibility

type UnimplementedStringServiceServer

type UnimplementedStringServiceServer struct {
}

UnimplementedStringServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStringServiceServer) Diff

type UnsafeStringServiceServer

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

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

Jump to

Keyboard shortcuts

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