proto

package
v0.0.0-...-cb82d97 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorService_CreateProduct_FullMethodName = "/grpc.gateway.example.internal.adapter.api.domain.ErrorService/CreateProduct"
)

Variables

View Source
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)

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type UnimplementedErrorServiceServer

type UnimplementedErrorServiceServer struct {
}

UnimplementedErrorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedErrorServiceServer) CreateProduct

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.

Jump to

Keyboard shortcuts

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