Documentation ¶
Index ¶
- Variables
- func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelloRequest) GetGreeting() string
- func (*HelloRequest) ProtoMessage()
- func (x *HelloRequest) ProtoReflect() protoreflect.Message
- func (x *HelloRequest) Reset()
- func (x *HelloRequest) String() string
- func (m *HelloRequest) Validate() error
- type HelloRequestValidationError
- 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 HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HelloResponse) GetReply() string
- func (*HelloResponse) ProtoMessage()
- func (x *HelloResponse) ProtoReflect() protoreflect.Message
- func (x *HelloResponse) Reset()
- func (x *HelloResponse) String() string
- func (m *HelloResponse) Validate() error
- type HelloResponseValidationError
- func (e HelloResponseValidationError) Cause() error
- func (e HelloResponseValidationError) Error() string
- func (e HelloResponseValidationError) ErrorName() string
- func (e HelloResponseValidationError) Field() string
- func (e HelloResponseValidationError) Key() bool
- func (e HelloResponseValidationError) Reason() string
- type HelloServiceClient
- type HelloServiceServer
- type UnimplementedHelloServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_hello_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
Types ¶
type HelloRequest ¶
type HelloRequest struct { Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetGreeting ¶
func (x *HelloRequest) GetGreeting() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
func (*HelloRequest) Validate ¶ added in v1.0.15
func (m *HelloRequest) Validate() error
Validate checks the field values on HelloRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HelloRequestValidationError ¶ added in v1.0.15
type HelloRequestValidationError struct {
// contains filtered or unexported fields
}
HelloRequestValidationError is the validation error returned by HelloRequest.Validate if the designated constraints aren't met.
func (HelloRequestValidationError) Cause ¶ added in v1.0.15
func (e HelloRequestValidationError) Cause() error
Cause function returns cause value.
func (HelloRequestValidationError) Error ¶ added in v1.0.15
func (e HelloRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HelloRequestValidationError) ErrorName ¶ added in v1.0.15
func (e HelloRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HelloRequestValidationError) Field ¶ added in v1.0.15
func (e HelloRequestValidationError) Field() string
Field function returns field value.
func (HelloRequestValidationError) Key ¶ added in v1.0.15
func (e HelloRequestValidationError) Key() bool
Key function returns key value.
func (HelloRequestValidationError) Reason ¶ added in v1.0.15
func (e HelloRequestValidationError) Reason() string
Reason function returns reason value.
type HelloResponse ¶
type HelloResponse struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetReply ¶
func (x *HelloResponse) GetReply() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
func (*HelloResponse) Validate ¶ added in v1.0.15
func (m *HelloResponse) Validate() error
Validate checks the field values on HelloResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HelloResponseValidationError ¶ added in v1.0.15
type HelloResponseValidationError struct {
// contains filtered or unexported fields
}
HelloResponseValidationError is the validation error returned by HelloResponse.Validate if the designated constraints aren't met.
func (HelloResponseValidationError) Cause ¶ added in v1.0.15
func (e HelloResponseValidationError) Cause() error
Cause function returns cause value.
func (HelloResponseValidationError) Error ¶ added in v1.0.15
func (e HelloResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HelloResponseValidationError) ErrorName ¶ added in v1.0.15
func (e HelloResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HelloResponseValidationError) Field ¶ added in v1.0.15
func (e HelloResponseValidationError) Field() string
Field function returns field value.
func (HelloResponseValidationError) Key ¶ added in v1.0.15
func (e HelloResponseValidationError) Key() bool
Key function returns key value.
func (HelloResponseValidationError) Reason ¶ added in v1.0.15
func (e HelloResponseValidationError) Reason() string
Reason function returns reason value.
type HelloServiceClient ¶
type HelloServiceClient interface {
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}
HelloServiceClient is the client API for HelloService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface {
SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
}
HelloServiceServer is the server API for HelloService service.
type UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct { }
UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServiceServer) SayHello ¶
func (*UnimplementedHelloServiceServer) SayHello(context.Context, *HelloRequest) (*HelloResponse, error)