Versions in this module Expand all Collapse all v1 v1.0.1 Oct 19, 2021 v1.0.0 Oct 12, 2021 Changes in this version + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_helloworld_v1_error_reason_proto protoreflect.FileDescriptor + var File_helloworld_v1_greeter_proto protoreflect.FileDescriptor + var Greeter_ServiceDesc = grpc.ServiceDesc + func ErrorContentMissing(format string, args ...interface{}) *errors.Error + func ErrorUserNotFound(format string, args ...interface{}) *errors.Error + func IsContentMissing(err error) bool + func IsUserNotFound(err error) bool + func RegisterGreeterHTTPServer(s *http.Server, srv GreeterHTTPServer) + func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer) + type ErrorReason int32 + const ErrorReason_CONTENT_MISSING + const ErrorReason_USER_NOT_FOUND + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GreeterClient interface + Ping func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HelloReply, error) + SayHello func(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) + func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient + type GreeterHTTPClient interface + Ping func(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *HelloReply, err error) + SayHello func(ctx context.Context, req *HelloRequest, opts ...http.CallOption) (rsp *HelloReply, err error) + func NewGreeterHTTPClient(client *http.Client) GreeterHTTPClient + type GreeterHTTPClientImpl struct + func (c *GreeterHTTPClientImpl) Ping(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*HelloReply, error) + func (c *GreeterHTTPClientImpl) SayHello(ctx context.Context, in *HelloRequest, opts ...http.CallOption) (*HelloReply, error) + type GreeterHTTPServer interface + Ping func(context.Context, *emptypb.Empty) (*HelloReply, error) + SayHello func(context.Context, *HelloRequest) (*HelloReply, error) + type GreeterServer interface + Ping func(context.Context, *emptypb.Empty) (*HelloReply, error) + SayHello func(context.Context, *HelloRequest) (*HelloReply, error) + type HelloReply struct + Message string + func (*HelloReply) Descriptor() ([]byte, []int) + func (*HelloReply) ProtoMessage() + func (m *HelloReply) Validate() error + func (x *HelloReply) GetMessage() string + func (x *HelloReply) ProtoReflect() protoreflect.Message + func (x *HelloReply) Reset() + func (x *HelloReply) String() string + type HelloReplyValidationError struct + func (e HelloReplyValidationError) Cause() error + func (e HelloReplyValidationError) Error() string + func (e HelloReplyValidationError) ErrorName() string + func (e HelloReplyValidationError) Field() string + func (e HelloReplyValidationError) Key() bool + func (e HelloReplyValidationError) Reason() string + type HelloRequest struct + Name string + func (*HelloRequest) Descriptor() ([]byte, []int) + func (*HelloRequest) ProtoMessage() + func (m *HelloRequest) Validate() error + func (x *HelloRequest) GetName() string + func (x *HelloRequest) ProtoReflect() protoreflect.Message + func (x *HelloRequest) Reset() + func (x *HelloRequest) String() string + type HelloRequestValidationError struct + func (e HelloRequestValidationError) Cause() error + func (e HelloRequestValidationError) Error() string + func (e HelloRequestValidationError) ErrorName() string + func (e HelloRequestValidationError) Field() string + func (e HelloRequestValidationError) Key() bool + func (e HelloRequestValidationError) Reason() string + type UnimplementedGreeterServer struct + func (UnimplementedGreeterServer) Ping(context.Context, *emptypb.Empty) (*HelloReply, error) + func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error) + type UnsafeGreeterServer interface