Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterErrorServiceServer(s grpc.ServiceRegistrar, srv ErrorServiceServer)
- type ErrorMessage
- func (*ErrorMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorMessage) GetError() string
- func (x *ErrorMessage) GetMessage() string
- func (*ErrorMessage) ProtoMessage()
- func (x *ErrorMessage) ProtoReflect() protoreflect.Message
- func (x *ErrorMessage) Reset()
- func (x *ErrorMessage) String() string
- type ErrorServiceClient
- type ErrorServiceServer
- type Message
- type UnimplementedErrorServiceServer
- type UnsafeErrorServiceServer
Constants ¶
const (
ErrorService_CreateProduct_FullMethodName = "/grpc.gateway.example.internal.adapter.api.domain.ErrorService/CreateProduct"
)
Variables ¶
var ErrorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.gateway.example.internal.adapter.api.domain.ErrorService", HandlerType: (*ErrorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateProduct", Handler: _ErrorService_CreateProduct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/adapter/api/domain/proto/error.proto", }
ErrorService_ServiceDesc is the grpc.ServiceDesc for ErrorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_adapter_api_domain_proto_error_proto protoreflect.FileDescriptor
var File_internal_adapter_api_domain_proto_message_proto protoreflect.FileDescriptor
Functions ¶
func RegisterErrorServiceServer ¶
func RegisterErrorServiceServer(s grpc.ServiceRegistrar, srv ErrorServiceServer)
Types ¶
type ErrorMessage ¶
type ErrorMessage struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ErrorMessage) Descriptor
deprecated
func (*ErrorMessage) Descriptor() ([]byte, []int)
Deprecated: Use ErrorMessage.ProtoReflect.Descriptor instead.
func (*ErrorMessage) GetError ¶
func (x *ErrorMessage) GetError() string
func (*ErrorMessage) GetMessage ¶
func (x *ErrorMessage) GetMessage() string
func (*ErrorMessage) ProtoMessage ¶
func (*ErrorMessage) ProtoMessage()
func (*ErrorMessage) ProtoReflect ¶
func (x *ErrorMessage) ProtoReflect() protoreflect.Message
func (*ErrorMessage) Reset ¶
func (x *ErrorMessage) Reset()
func (*ErrorMessage) String ¶
func (x *ErrorMessage) String() string
type ErrorServiceClient ¶
type ErrorServiceClient interface {
CreateProduct(ctx context.Context, in *ErrorMessage, opts ...grpc.CallOption) (*ErrorMessage, error)
}
ErrorServiceClient is the client API for ErrorService 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 NewErrorServiceClient ¶
func NewErrorServiceClient(cc grpc.ClientConnInterface) ErrorServiceClient
type ErrorServiceServer ¶
type ErrorServiceServer interface { CreateProduct(context.Context, *ErrorMessage) (*ErrorMessage, error) // contains filtered or unexported methods }
ErrorServiceServer is the server API for ErrorService service. All implementations must embed UnimplementedErrorServiceServer for forward compatibility
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) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type UnimplementedErrorServiceServer ¶
type UnimplementedErrorServiceServer struct { }
UnimplementedErrorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedErrorServiceServer) CreateProduct ¶
func (UnimplementedErrorServiceServer) CreateProduct(context.Context, *ErrorMessage) (*ErrorMessage, error)
type UnsafeErrorServiceServer ¶
type UnsafeErrorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeErrorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ErrorServiceServer will result in compilation errors.