Documentation ¶
Index ¶
- Variables
- func RegisterStringServiceServer(s grpc.ServiceRegistrar, srv StringServiceServer)
- type StringRequest
- func (*StringRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StringRequest) GetA() string
- func (x *StringRequest) GetB() string
- func (x *StringRequest) GetRequestType() string
- func (*StringRequest) ProtoMessage()
- func (x *StringRequest) ProtoReflect() protoreflect.Message
- func (x *StringRequest) Reset()
- func (x *StringRequest) String() string
- type StringResponse
- func (*StringResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StringResponse) GetErr() string
- func (x *StringResponse) GetResult() string
- func (*StringResponse) ProtoMessage()
- func (x *StringResponse) ProtoReflect() protoreflect.Message
- func (x *StringResponse) Reset()
- func (x *StringResponse) String() string
- type StringServiceClient
- type StringServiceServer
- type UnimplementedStringServiceServer
- type UnsafeStringServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_str_proto protoreflect.FileDescriptor
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.
func NewStringServiceClient ¶
func NewStringServiceClient(cc grpc.ClientConnInterface) StringServiceClient
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 ¶
func (UnimplementedStringServiceServer) Diff(context.Context, *StringRequest) (*StringResponse, error)
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.