Documentation
¶
Index ¶
- Variables
- func RegisterStringxServiceServer(s grpc.ServiceRegistrar, srv StringxServiceServer)
- type CountRequest
- type CountResponse
- type MockStringxServiceClient
- func (m *MockStringxServiceClient) Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error)
- func (m *MockStringxServiceClient) EXPECT() *MockStringxServiceClientMockRecorder
- func (m *MockStringxServiceClient) ToUpper(ctx context.Context, in *ToUpperRequest, opts ...grpc.CallOption) (*ToUpperResponse, error)
- type MockStringxServiceClientMockRecorder
- type MockStringxServiceServer
- type MockStringxServiceServerMockRecorder
- type StringxServiceClient
- type StringxServiceServer
- type ToUpperRequest
- type ToUpperResponse
- type UnimplementedStringxServiceServer
- type UnsafeStringxServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_entity_domain_stringx_model_stringx_proto protoreflect.FileDescriptor
var StringxService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stringx.StringxService", HandlerType: (*StringxServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ToUpper", Handler: _StringxService_ToUpper_Handler, }, { MethodName: "Count", Handler: _StringxService_Count_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "entity/domain/stringx/model/stringx.proto", }
StringxService_ServiceDesc is the grpc.ServiceDesc for StringxService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStringxServiceServer ¶
func RegisterStringxServiceServer(s grpc.ServiceRegistrar, srv StringxServiceServer)
Types ¶
type CountRequest ¶
type CountRequest struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CountRequest) Descriptor
deprecated
func (*CountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountRequest.ProtoReflect.Descriptor instead.
func (*CountRequest) GetValue ¶
func (x *CountRequest) GetValue() string
func (*CountRequest) ProtoMessage ¶
func (*CountRequest) ProtoMessage()
func (*CountRequest) ProtoReflect ¶
func (x *CountRequest) ProtoReflect() protoreflect.Message
func (*CountRequest) Reset ¶
func (x *CountRequest) Reset()
func (*CountRequest) String ¶
func (x *CountRequest) String() string
type CountResponse ¶
type CountResponse struct { Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CountResponse) Descriptor
deprecated
func (*CountResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountResponse.ProtoReflect.Descriptor instead.
func (*CountResponse) GetValue ¶
func (x *CountResponse) GetValue() int32
func (*CountResponse) ProtoMessage ¶
func (*CountResponse) ProtoMessage()
func (*CountResponse) ProtoReflect ¶
func (x *CountResponse) ProtoReflect() protoreflect.Message
func (*CountResponse) Reset ¶
func (x *CountResponse) Reset()
func (*CountResponse) String ¶
func (x *CountResponse) String() string
type MockStringxServiceClient ¶
type MockStringxServiceClient struct {
// contains filtered or unexported fields
}
MockStringxServiceClient is a mock of StringxServiceClient interface.
func NewMockStringxServiceClient ¶
func NewMockStringxServiceClient(ctrl *gomock.Controller) *MockStringxServiceClient
NewMockStringxServiceClient creates a new mock instance.
func (*MockStringxServiceClient) Count ¶
func (m *MockStringxServiceClient) Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error)
Count mocks base method.
func (*MockStringxServiceClient) EXPECT ¶
func (m *MockStringxServiceClient) EXPECT() *MockStringxServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStringxServiceClient) ToUpper ¶
func (m *MockStringxServiceClient) ToUpper(ctx context.Context, in *ToUpperRequest, opts ...grpc.CallOption) (*ToUpperResponse, error)
ToUpper mocks base method.
type MockStringxServiceClientMockRecorder ¶
type MockStringxServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockStringxServiceClientMockRecorder is the mock recorder for MockStringxServiceClient.
func (*MockStringxServiceClientMockRecorder) Count ¶
func (mr *MockStringxServiceClientMockRecorder) Count(ctx, in interface{}, opts ...interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockStringxServiceClientMockRecorder) ToUpper ¶
func (mr *MockStringxServiceClientMockRecorder) ToUpper(ctx, in interface{}, opts ...interface{}) *gomock.Call
ToUpper indicates an expected call of ToUpper.
type MockStringxServiceServer ¶
type MockStringxServiceServer struct {
// contains filtered or unexported fields
}
MockStringxServiceServer is a mock of StringxServiceServer interface.
func NewMockStringxServiceServer ¶
func NewMockStringxServiceServer(ctrl *gomock.Controller) *MockStringxServiceServer
NewMockStringxServiceServer creates a new mock instance.
func (*MockStringxServiceServer) Count ¶
func (m *MockStringxServiceServer) Count(ctx context.Context, in *CountRequest) (*CountResponse, error)
Count mocks base method.
func (*MockStringxServiceServer) EXPECT ¶
func (m *MockStringxServiceServer) EXPECT() *MockStringxServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStringxServiceServer) ToUpper ¶
func (m *MockStringxServiceServer) ToUpper(ctx context.Context, in *ToUpperRequest) (*ToUpperResponse, error)
ToUpper mocks base method.
type MockStringxServiceServerMockRecorder ¶
type MockStringxServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockStringxServiceServerMockRecorder is the mock recorder for MockStringxServiceServer.
func (*MockStringxServiceServerMockRecorder) Count ¶
func (mr *MockStringxServiceServerMockRecorder) Count(ctx, in interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockStringxServiceServerMockRecorder) ToUpper ¶
func (mr *MockStringxServiceServerMockRecorder) ToUpper(ctx, in interface{}) *gomock.Call
ToUpper indicates an expected call of ToUpper.
type StringxServiceClient ¶
type StringxServiceClient interface { ToUpper(ctx context.Context, in *ToUpperRequest, opts ...grpc.CallOption) (*ToUpperResponse, error) Count(ctx context.Context, in *CountRequest, opts ...grpc.CallOption) (*CountResponse, error) }
StringxServiceClient is the client API for StringxService 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 NewStringxServiceClient ¶
func NewStringxServiceClient(cc grpc.ClientConnInterface) StringxServiceClient
type StringxServiceServer ¶
type StringxServiceServer interface { ToUpper(context.Context, *ToUpperRequest) (*ToUpperResponse, error) Count(context.Context, *CountRequest) (*CountResponse, error) }
StringxServiceServer is the server API for StringxService service. All implementations should embed UnimplementedStringxServiceServer for forward compatibility
type ToUpperRequest ¶
type ToUpperRequest struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ToUpperRequest) Descriptor
deprecated
func (*ToUpperRequest) Descriptor() ([]byte, []int)
Deprecated: Use ToUpperRequest.ProtoReflect.Descriptor instead.
func (*ToUpperRequest) GetValue ¶
func (x *ToUpperRequest) GetValue() string
func (*ToUpperRequest) ProtoMessage ¶
func (*ToUpperRequest) ProtoMessage()
func (*ToUpperRequest) ProtoReflect ¶
func (x *ToUpperRequest) ProtoReflect() protoreflect.Message
func (*ToUpperRequest) Reset ¶
func (x *ToUpperRequest) Reset()
func (*ToUpperRequest) String ¶
func (x *ToUpperRequest) String() string
type ToUpperResponse ¶
type ToUpperResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ToUpperResponse) Descriptor
deprecated
func (*ToUpperResponse) Descriptor() ([]byte, []int)
Deprecated: Use ToUpperResponse.ProtoReflect.Descriptor instead.
func (*ToUpperResponse) GetValue ¶
func (x *ToUpperResponse) GetValue() string
func (*ToUpperResponse) ProtoMessage ¶
func (*ToUpperResponse) ProtoMessage()
func (*ToUpperResponse) ProtoReflect ¶
func (x *ToUpperResponse) ProtoReflect() protoreflect.Message
func (*ToUpperResponse) Reset ¶
func (x *ToUpperResponse) Reset()
func (*ToUpperResponse) String ¶
func (x *ToUpperResponse) String() string
type UnimplementedStringxServiceServer ¶
type UnimplementedStringxServiceServer struct { }
UnimplementedStringxServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedStringxServiceServer) Count ¶
func (UnimplementedStringxServiceServer) Count(context.Context, *CountRequest) (*CountResponse, error)
func (UnimplementedStringxServiceServer) ToUpper ¶
func (UnimplementedStringxServiceServer) ToUpper(context.Context, *ToUpperRequest) (*ToUpperResponse, error)
type UnsafeStringxServiceServer ¶
type UnsafeStringxServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStringxServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StringxServiceServer will result in compilation errors.