model

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_entity_domain_stringx_model_stringx_proto protoreflect.FileDescriptor
View Source
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

Count mocks base method.

func (*MockStringxServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStringxServiceClient) ToUpper

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

Count mocks base method.

func (*MockStringxServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStringxServiceServer) ToUpper

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.

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) ToUpper

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.

Jump to

Keyboard shortcuts

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