Documentation ¶
Overview ¶
Package mywordoftheday is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMyWordOfTheDayServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMyWordOfTheDayServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MyWordOfTheDayServiceClient) error
- func RegisterMyWordOfTheDayServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMyWordOfTheDayServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MyWordOfTheDayServiceServer) error
- func RegisterMyWordOfTheDayServiceServer(s *grpc.Server, srv MyWordOfTheDayServiceServer)
- type AddWordRequest
- func (*AddWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddWordRequest) GetWord() *Word
- func (*AddWordRequest) ProtoMessage()
- func (x *AddWordRequest) ProtoReflect() protoreflect.Message
- func (x *AddWordRequest) Reset()
- func (x *AddWordRequest) String() string
- func (m *AddWordRequest) Validate() error
- type AddWordRequestValidationError
- func (e AddWordRequestValidationError) Cause() error
- func (e AddWordRequestValidationError) Error() string
- func (e AddWordRequestValidationError) ErrorName() string
- func (e AddWordRequestValidationError) Field() string
- func (e AddWordRequestValidationError) Key() bool
- func (e AddWordRequestValidationError) Reason() string
- type AddWordResponse
- func (*AddWordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddWordResponse) GetWord() *Word
- func (*AddWordResponse) ProtoMessage()
- func (x *AddWordResponse) ProtoReflect() protoreflect.Message
- func (x *AddWordResponse) Reset()
- func (x *AddWordResponse) String() string
- func (m *AddWordResponse) Validate() error
- type AddWordResponseValidationError
- func (e AddWordResponseValidationError) Cause() error
- func (e AddWordResponseValidationError) Error() string
- func (e AddWordResponseValidationError) ErrorName() string
- func (e AddWordResponseValidationError) Field() string
- func (e AddWordResponseValidationError) Key() bool
- func (e AddWordResponseValidationError) Reason() string
- type DeleteWordRequest
- func (*DeleteWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWordRequest) GetId() int32
- func (*DeleteWordRequest) ProtoMessage()
- func (x *DeleteWordRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteWordRequest) Reset()
- func (x *DeleteWordRequest) String() string
- func (m *DeleteWordRequest) Validate() error
- type DeleteWordRequestValidationError
- func (e DeleteWordRequestValidationError) Cause() error
- func (e DeleteWordRequestValidationError) Error() string
- func (e DeleteWordRequestValidationError) ErrorName() string
- func (e DeleteWordRequestValidationError) Field() string
- func (e DeleteWordRequestValidationError) Key() bool
- func (e DeleteWordRequestValidationError) Reason() string
- type DeleteWordResponse
- func (*DeleteWordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWordResponse) GetWord() *Word
- func (*DeleteWordResponse) ProtoMessage()
- func (x *DeleteWordResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteWordResponse) Reset()
- func (x *DeleteWordResponse) String() string
- func (m *DeleteWordResponse) Validate() error
- type DeleteWordResponseValidationError
- func (e DeleteWordResponseValidationError) Cause() error
- func (e DeleteWordResponseValidationError) Error() string
- func (e DeleteWordResponseValidationError) ErrorName() string
- func (e DeleteWordResponseValidationError) Field() string
- func (e DeleteWordResponseValidationError) Key() bool
- func (e DeleteWordResponseValidationError) Reason() string
- type HeartbeatRequest
- type HeartbeatRequestValidationError
- func (e HeartbeatRequestValidationError) Cause() error
- func (e HeartbeatRequestValidationError) Error() string
- func (e HeartbeatRequestValidationError) ErrorName() string
- func (e HeartbeatRequestValidationError) Field() string
- func (e HeartbeatRequestValidationError) Key() bool
- func (e HeartbeatRequestValidationError) Reason() string
- type HeartbeatResponse
- type HeartbeatResponseValidationError
- func (e HeartbeatResponseValidationError) Cause() error
- func (e HeartbeatResponseValidationError) Error() string
- func (e HeartbeatResponseValidationError) ErrorName() string
- func (e HeartbeatResponseValidationError) Field() string
- func (e HeartbeatResponseValidationError) Key() bool
- func (e HeartbeatResponseValidationError) Reason() string
- type ListWordsRequest
- type ListWordsRequestValidationError
- func (e ListWordsRequestValidationError) Cause() error
- func (e ListWordsRequestValidationError) Error() string
- func (e ListWordsRequestValidationError) ErrorName() string
- func (e ListWordsRequestValidationError) Field() string
- func (e ListWordsRequestValidationError) Key() bool
- func (e ListWordsRequestValidationError) Reason() string
- type ListWordsResponse
- func (*ListWordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListWordsResponse) GetWords() []*Word
- func (*ListWordsResponse) ProtoMessage()
- func (x *ListWordsResponse) ProtoReflect() protoreflect.Message
- func (x *ListWordsResponse) Reset()
- func (x *ListWordsResponse) String() string
- func (m *ListWordsResponse) Validate() error
- type ListWordsResponseValidationError
- func (e ListWordsResponseValidationError) Cause() error
- func (e ListWordsResponseValidationError) Error() string
- func (e ListWordsResponseValidationError) ErrorName() string
- func (e ListWordsResponseValidationError) Field() string
- func (e ListWordsResponseValidationError) Key() bool
- func (e ListWordsResponseValidationError) Reason() string
- type MyWordOfTheDayServiceClient
- type MyWordOfTheDayServiceServer
- type RandomWordRequest
- type RandomWordRequestValidationError
- func (e RandomWordRequestValidationError) Cause() error
- func (e RandomWordRequestValidationError) Error() string
- func (e RandomWordRequestValidationError) ErrorName() string
- func (e RandomWordRequestValidationError) Field() string
- func (e RandomWordRequestValidationError) Key() bool
- func (e RandomWordRequestValidationError) Reason() string
- type RandomWordResponse
- func (*RandomWordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RandomWordResponse) GetWord() *Word
- func (*RandomWordResponse) ProtoMessage()
- func (x *RandomWordResponse) ProtoReflect() protoreflect.Message
- func (x *RandomWordResponse) Reset()
- func (x *RandomWordResponse) String() string
- func (m *RandomWordResponse) Validate() error
- type RandomWordResponseValidationError
- func (e RandomWordResponseValidationError) Cause() error
- func (e RandomWordResponseValidationError) Error() string
- func (e RandomWordResponseValidationError) ErrorName() string
- func (e RandomWordResponseValidationError) Field() string
- func (e RandomWordResponseValidationError) Key() bool
- func (e RandomWordResponseValidationError) Reason() string
- type UnimplementedMyWordOfTheDayServiceServer
- func (UnimplementedMyWordOfTheDayServiceServer) AddWord(context.Context, *AddWordRequest) (*AddWordResponse, error)
- func (UnimplementedMyWordOfTheDayServiceServer) DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordResponse, error)
- func (UnimplementedMyWordOfTheDayServiceServer) Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
- func (UnimplementedMyWordOfTheDayServiceServer) ListWords(context.Context, *ListWordsRequest) (*ListWordsResponse, error)
- func (UnimplementedMyWordOfTheDayServiceServer) RandomWord(context.Context, *RandomWordRequest) (*RandomWordResponse, error)
- type UnsafeMyWordOfTheDayServiceServer
- type Word
- func (*Word) Descriptor() ([]byte, []int)deprecated
- func (x *Word) GetCustomDefinition() string
- func (x *Word) GetId() int32
- func (x *Word) GetWord() string
- func (*Word) ProtoMessage()
- func (x *Word) ProtoReflect() protoreflect.Message
- func (x *Word) Reset()
- func (x *Word) String() string
- func (m *Word) Validate() error
- type WordValidationError
Constants ¶
This section is empty.
Variables ¶
var File_mywordoftheday_v1alpha1_mywordoftheday_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMyWordOfTheDayServiceHandler ¶
func RegisterMyWordOfTheDayServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMyWordOfTheDayServiceHandler registers the http handlers for service MyWordOfTheDayService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMyWordOfTheDayServiceHandlerClient ¶
func RegisterMyWordOfTheDayServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MyWordOfTheDayServiceClient) error
RegisterMyWordOfTheDayServiceHandlerClient registers the http handlers for service MyWordOfTheDayService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MyWordOfTheDayServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MyWordOfTheDayServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MyWordOfTheDayServiceClient" to call the correct interceptors.
func RegisterMyWordOfTheDayServiceHandlerFromEndpoint ¶
func RegisterMyWordOfTheDayServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMyWordOfTheDayServiceHandlerFromEndpoint is same as RegisterMyWordOfTheDayServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMyWordOfTheDayServiceHandlerServer ¶
func RegisterMyWordOfTheDayServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MyWordOfTheDayServiceServer) error
RegisterMyWordOfTheDayServiceHandlerServer registers the http handlers for service MyWordOfTheDayService to "mux". UnaryRPC :call MyWordOfTheDayServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMyWordOfTheDayServiceHandlerFromEndpoint instead.
func RegisterMyWordOfTheDayServiceServer ¶
func RegisterMyWordOfTheDayServiceServer(s *grpc.Server, srv MyWordOfTheDayServiceServer)
Types ¶
type AddWordRequest ¶
type AddWordRequest struct { // The word to add Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` // contains filtered or unexported fields }
func (*AddWordRequest) Descriptor
deprecated
func (*AddWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddWordRequest.ProtoReflect.Descriptor instead.
func (*AddWordRequest) GetWord ¶
func (x *AddWordRequest) GetWord() *Word
func (*AddWordRequest) ProtoMessage ¶
func (*AddWordRequest) ProtoMessage()
func (*AddWordRequest) ProtoReflect ¶
func (x *AddWordRequest) ProtoReflect() protoreflect.Message
func (*AddWordRequest) Reset ¶
func (x *AddWordRequest) Reset()
func (*AddWordRequest) String ¶
func (x *AddWordRequest) String() string
func (*AddWordRequest) Validate ¶
func (m *AddWordRequest) Validate() error
Validate checks the field values on AddWordRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddWordRequestValidationError ¶
type AddWordRequestValidationError struct {
// contains filtered or unexported fields
}
AddWordRequestValidationError is the validation error returned by AddWordRequest.Validate if the designated constraints aren't met.
func (AddWordRequestValidationError) Cause ¶
func (e AddWordRequestValidationError) Cause() error
Cause function returns cause value.
func (AddWordRequestValidationError) Error ¶
func (e AddWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddWordRequestValidationError) ErrorName ¶
func (e AddWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddWordRequestValidationError) Field ¶
func (e AddWordRequestValidationError) Field() string
Field function returns field value.
func (AddWordRequestValidationError) Key ¶
func (e AddWordRequestValidationError) Key() bool
Key function returns key value.
func (AddWordRequestValidationError) Reason ¶
func (e AddWordRequestValidationError) Reason() string
Reason function returns reason value.
type AddWordResponse ¶
type AddWordResponse struct { // The added word Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` // contains filtered or unexported fields }
func (*AddWordResponse) Descriptor
deprecated
func (*AddWordResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddWordResponse.ProtoReflect.Descriptor instead.
func (*AddWordResponse) GetWord ¶
func (x *AddWordResponse) GetWord() *Word
func (*AddWordResponse) ProtoMessage ¶
func (*AddWordResponse) ProtoMessage()
func (*AddWordResponse) ProtoReflect ¶
func (x *AddWordResponse) ProtoReflect() protoreflect.Message
func (*AddWordResponse) Reset ¶
func (x *AddWordResponse) Reset()
func (*AddWordResponse) String ¶
func (x *AddWordResponse) String() string
func (*AddWordResponse) Validate ¶
func (m *AddWordResponse) Validate() error
Validate checks the field values on AddWordResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddWordResponseValidationError ¶
type AddWordResponseValidationError struct {
// contains filtered or unexported fields
}
AddWordResponseValidationError is the validation error returned by AddWordResponse.Validate if the designated constraints aren't met.
func (AddWordResponseValidationError) Cause ¶
func (e AddWordResponseValidationError) Cause() error
Cause function returns cause value.
func (AddWordResponseValidationError) Error ¶
func (e AddWordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddWordResponseValidationError) ErrorName ¶
func (e AddWordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddWordResponseValidationError) Field ¶
func (e AddWordResponseValidationError) Field() string
Field function returns field value.
func (AddWordResponseValidationError) Key ¶
func (e AddWordResponseValidationError) Key() bool
Key function returns key value.
func (AddWordResponseValidationError) Reason ¶
func (e AddWordResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteWordRequest ¶
type DeleteWordRequest struct { // The unique identifier of the change. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteWordRequest) Descriptor
deprecated
func (*DeleteWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWordRequest.ProtoReflect.Descriptor instead.
func (*DeleteWordRequest) GetId ¶
func (x *DeleteWordRequest) GetId() int32
func (*DeleteWordRequest) ProtoMessage ¶
func (*DeleteWordRequest) ProtoMessage()
func (*DeleteWordRequest) ProtoReflect ¶
func (x *DeleteWordRequest) ProtoReflect() protoreflect.Message
func (*DeleteWordRequest) Reset ¶
func (x *DeleteWordRequest) Reset()
func (*DeleteWordRequest) String ¶
func (x *DeleteWordRequest) String() string
func (*DeleteWordRequest) Validate ¶
func (m *DeleteWordRequest) Validate() error
Validate checks the field values on DeleteWordRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteWordRequestValidationError ¶
type DeleteWordRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteWordRequestValidationError is the validation error returned by DeleteWordRequest.Validate if the designated constraints aren't met.
func (DeleteWordRequestValidationError) Cause ¶
func (e DeleteWordRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteWordRequestValidationError) Error ¶
func (e DeleteWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteWordRequestValidationError) ErrorName ¶
func (e DeleteWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteWordRequestValidationError) Field ¶
func (e DeleteWordRequestValidationError) Field() string
Field function returns field value.
func (DeleteWordRequestValidationError) Key ¶
func (e DeleteWordRequestValidationError) Key() bool
Key function returns key value.
func (DeleteWordRequestValidationError) Reason ¶
func (e DeleteWordRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteWordResponse ¶
type DeleteWordResponse struct { // The deleted word Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` // contains filtered or unexported fields }
func (*DeleteWordResponse) Descriptor
deprecated
func (*DeleteWordResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWordResponse.ProtoReflect.Descriptor instead.
func (*DeleteWordResponse) GetWord ¶
func (x *DeleteWordResponse) GetWord() *Word
func (*DeleteWordResponse) ProtoMessage ¶
func (*DeleteWordResponse) ProtoMessage()
func (*DeleteWordResponse) ProtoReflect ¶
func (x *DeleteWordResponse) ProtoReflect() protoreflect.Message
func (*DeleteWordResponse) Reset ¶
func (x *DeleteWordResponse) Reset()
func (*DeleteWordResponse) String ¶
func (x *DeleteWordResponse) String() string
func (*DeleteWordResponse) Validate ¶
func (m *DeleteWordResponse) Validate() error
Validate checks the field values on DeleteWordResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteWordResponseValidationError ¶
type DeleteWordResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteWordResponseValidationError is the validation error returned by DeleteWordResponse.Validate if the designated constraints aren't met.
func (DeleteWordResponseValidationError) Cause ¶
func (e DeleteWordResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteWordResponseValidationError) Error ¶
func (e DeleteWordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteWordResponseValidationError) ErrorName ¶
func (e DeleteWordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteWordResponseValidationError) Field ¶
func (e DeleteWordResponseValidationError) Field() string
Field function returns field value.
func (DeleteWordResponseValidationError) Key ¶
func (e DeleteWordResponseValidationError) Key() bool
Key function returns key value.
func (DeleteWordResponseValidationError) Reason ¶
func (e DeleteWordResponseValidationError) Reason() string
Reason function returns reason value.
type HeartbeatRequest ¶
type HeartbeatRequest struct {
// contains filtered or unexported fields
}
func (*HeartbeatRequest) Descriptor
deprecated
func (*HeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.
func (*HeartbeatRequest) ProtoMessage ¶
func (*HeartbeatRequest) ProtoMessage()
func (*HeartbeatRequest) ProtoReflect ¶
func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message
func (*HeartbeatRequest) Reset ¶
func (x *HeartbeatRequest) Reset()
func (*HeartbeatRequest) String ¶
func (x *HeartbeatRequest) String() string
func (*HeartbeatRequest) Validate ¶
func (m *HeartbeatRequest) Validate() error
Validate checks the field values on HeartbeatRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HeartbeatRequestValidationError ¶
type HeartbeatRequestValidationError struct {
// contains filtered or unexported fields
}
HeartbeatRequestValidationError is the validation error returned by HeartbeatRequest.Validate if the designated constraints aren't met.
func (HeartbeatRequestValidationError) Cause ¶
func (e HeartbeatRequestValidationError) Cause() error
Cause function returns cause value.
func (HeartbeatRequestValidationError) Error ¶
func (e HeartbeatRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HeartbeatRequestValidationError) ErrorName ¶
func (e HeartbeatRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HeartbeatRequestValidationError) Field ¶
func (e HeartbeatRequestValidationError) Field() string
Field function returns field value.
func (HeartbeatRequestValidationError) Key ¶
func (e HeartbeatRequestValidationError) Key() bool
Key function returns key value.
func (HeartbeatRequestValidationError) Reason ¶
func (e HeartbeatRequestValidationError) Reason() string
Reason function returns reason value.
type HeartbeatResponse ¶
type HeartbeatResponse struct {
// contains filtered or unexported fields
}
func (*HeartbeatResponse) Descriptor
deprecated
func (*HeartbeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
func (*HeartbeatResponse) ProtoMessage ¶
func (*HeartbeatResponse) ProtoMessage()
func (*HeartbeatResponse) ProtoReflect ¶
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message
func (*HeartbeatResponse) Reset ¶
func (x *HeartbeatResponse) Reset()
func (*HeartbeatResponse) String ¶
func (x *HeartbeatResponse) String() string
func (*HeartbeatResponse) Validate ¶
func (m *HeartbeatResponse) Validate() error
Validate checks the field values on HeartbeatResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HeartbeatResponseValidationError ¶
type HeartbeatResponseValidationError struct {
// contains filtered or unexported fields
}
HeartbeatResponseValidationError is the validation error returned by HeartbeatResponse.Validate if the designated constraints aren't met.
func (HeartbeatResponseValidationError) Cause ¶
func (e HeartbeatResponseValidationError) Cause() error
Cause function returns cause value.
func (HeartbeatResponseValidationError) Error ¶
func (e HeartbeatResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HeartbeatResponseValidationError) ErrorName ¶
func (e HeartbeatResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HeartbeatResponseValidationError) Field ¶
func (e HeartbeatResponseValidationError) Field() string
Field function returns field value.
func (HeartbeatResponseValidationError) Key ¶
func (e HeartbeatResponseValidationError) Key() bool
Key function returns key value.
func (HeartbeatResponseValidationError) Reason ¶
func (e HeartbeatResponseValidationError) Reason() string
Reason function returns reason value.
type ListWordsRequest ¶
type ListWordsRequest struct {
// contains filtered or unexported fields
}
func (*ListWordsRequest) Descriptor
deprecated
func (*ListWordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWordsRequest.ProtoReflect.Descriptor instead.
func (*ListWordsRequest) ProtoMessage ¶
func (*ListWordsRequest) ProtoMessage()
func (*ListWordsRequest) ProtoReflect ¶
func (x *ListWordsRequest) ProtoReflect() protoreflect.Message
func (*ListWordsRequest) Reset ¶
func (x *ListWordsRequest) Reset()
func (*ListWordsRequest) String ¶
func (x *ListWordsRequest) String() string
func (*ListWordsRequest) Validate ¶
func (m *ListWordsRequest) Validate() error
Validate checks the field values on ListWordsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListWordsRequestValidationError ¶
type ListWordsRequestValidationError struct {
// contains filtered or unexported fields
}
ListWordsRequestValidationError is the validation error returned by ListWordsRequest.Validate if the designated constraints aren't met.
func (ListWordsRequestValidationError) Cause ¶
func (e ListWordsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListWordsRequestValidationError) Error ¶
func (e ListWordsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListWordsRequestValidationError) ErrorName ¶
func (e ListWordsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListWordsRequestValidationError) Field ¶
func (e ListWordsRequestValidationError) Field() string
Field function returns field value.
func (ListWordsRequestValidationError) Key ¶
func (e ListWordsRequestValidationError) Key() bool
Key function returns key value.
func (ListWordsRequestValidationError) Reason ¶
func (e ListWordsRequestValidationError) Reason() string
Reason function returns reason value.
type ListWordsResponse ¶
type ListWordsResponse struct { // The list of words Words []*Word `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"` // contains filtered or unexported fields }
func (*ListWordsResponse) Descriptor
deprecated
func (*ListWordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListWordsResponse.ProtoReflect.Descriptor instead.
func (*ListWordsResponse) GetWords ¶
func (x *ListWordsResponse) GetWords() []*Word
func (*ListWordsResponse) ProtoMessage ¶
func (*ListWordsResponse) ProtoMessage()
func (*ListWordsResponse) ProtoReflect ¶
func (x *ListWordsResponse) ProtoReflect() protoreflect.Message
func (*ListWordsResponse) Reset ¶
func (x *ListWordsResponse) Reset()
func (*ListWordsResponse) String ¶
func (x *ListWordsResponse) String() string
func (*ListWordsResponse) Validate ¶
func (m *ListWordsResponse) Validate() error
Validate checks the field values on ListWordsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListWordsResponseValidationError ¶
type ListWordsResponseValidationError struct {
// contains filtered or unexported fields
}
ListWordsResponseValidationError is the validation error returned by ListWordsResponse.Validate if the designated constraints aren't met.
func (ListWordsResponseValidationError) Cause ¶
func (e ListWordsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListWordsResponseValidationError) Error ¶
func (e ListWordsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListWordsResponseValidationError) ErrorName ¶
func (e ListWordsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListWordsResponseValidationError) Field ¶
func (e ListWordsResponseValidationError) Field() string
Field function returns field value.
func (ListWordsResponseValidationError) Key ¶
func (e ListWordsResponseValidationError) Key() bool
Key function returns key value.
func (ListWordsResponseValidationError) Reason ¶
func (e ListWordsResponseValidationError) Reason() string
Reason function returns reason value.
type MyWordOfTheDayServiceClient ¶
type MyWordOfTheDayServiceClient interface { // Heartbeat // // Provides information about the service health Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error) // AddWord // // Adds a new word AddWord(ctx context.Context, in *AddWordRequest, opts ...grpc.CallOption) (*AddWordResponse, error) // ListWords // // Lists words ListWords(ctx context.Context, in *ListWordsRequest, opts ...grpc.CallOption) (*ListWordsResponse, error) // DeleteWord // // Deletes a Word DeleteWord(ctx context.Context, in *DeleteWordRequest, opts ...grpc.CallOption) (*DeleteWordResponse, error) // RandomWord // // Returns a word at random RandomWord(ctx context.Context, in *RandomWordRequest, opts ...grpc.CallOption) (*RandomWordResponse, error) }
MyWordOfTheDayServiceClient is the client API for MyWordOfTheDayService 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 NewMyWordOfTheDayServiceClient ¶
func NewMyWordOfTheDayServiceClient(cc grpc.ClientConnInterface) MyWordOfTheDayServiceClient
type MyWordOfTheDayServiceServer ¶
type MyWordOfTheDayServiceServer interface { // Heartbeat // // Provides information about the service health Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error) // AddWord // // Adds a new word AddWord(context.Context, *AddWordRequest) (*AddWordResponse, error) // ListWords // // Lists words ListWords(context.Context, *ListWordsRequest) (*ListWordsResponse, error) // DeleteWord // // Deletes a Word DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordResponse, error) // RandomWord // // Returns a word at random RandomWord(context.Context, *RandomWordRequest) (*RandomWordResponse, error) }
MyWordOfTheDayServiceServer is the server API for MyWordOfTheDayService service. All implementations should embed UnimplementedMyWordOfTheDayServiceServer for forward compatibility
type RandomWordRequest ¶ added in v0.0.3
type RandomWordRequest struct {
// contains filtered or unexported fields
}
func (*RandomWordRequest) Descriptor
deprecated
added in
v0.0.3
func (*RandomWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use RandomWordRequest.ProtoReflect.Descriptor instead.
func (*RandomWordRequest) ProtoMessage ¶ added in v0.0.3
func (*RandomWordRequest) ProtoMessage()
func (*RandomWordRequest) ProtoReflect ¶ added in v0.0.3
func (x *RandomWordRequest) ProtoReflect() protoreflect.Message
func (*RandomWordRequest) Reset ¶ added in v0.0.3
func (x *RandomWordRequest) Reset()
func (*RandomWordRequest) String ¶ added in v0.0.3
func (x *RandomWordRequest) String() string
func (*RandomWordRequest) Validate ¶ added in v0.0.3
func (m *RandomWordRequest) Validate() error
Validate checks the field values on RandomWordRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RandomWordRequestValidationError ¶ added in v0.0.3
type RandomWordRequestValidationError struct {
// contains filtered or unexported fields
}
RandomWordRequestValidationError is the validation error returned by RandomWordRequest.Validate if the designated constraints aren't met.
func (RandomWordRequestValidationError) Cause ¶ added in v0.0.3
func (e RandomWordRequestValidationError) Cause() error
Cause function returns cause value.
func (RandomWordRequestValidationError) Error ¶ added in v0.0.3
func (e RandomWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RandomWordRequestValidationError) ErrorName ¶ added in v0.0.3
func (e RandomWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RandomWordRequestValidationError) Field ¶ added in v0.0.3
func (e RandomWordRequestValidationError) Field() string
Field function returns field value.
func (RandomWordRequestValidationError) Key ¶ added in v0.0.3
func (e RandomWordRequestValidationError) Key() bool
Key function returns key value.
func (RandomWordRequestValidationError) Reason ¶ added in v0.0.3
func (e RandomWordRequestValidationError) Reason() string
Reason function returns reason value.
type RandomWordResponse ¶ added in v0.0.3
type RandomWordResponse struct { Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` // contains filtered or unexported fields }
func (*RandomWordResponse) Descriptor
deprecated
added in
v0.0.3
func (*RandomWordResponse) Descriptor() ([]byte, []int)
Deprecated: Use RandomWordResponse.ProtoReflect.Descriptor instead.
func (*RandomWordResponse) GetWord ¶ added in v0.0.4
func (x *RandomWordResponse) GetWord() *Word
func (*RandomWordResponse) ProtoMessage ¶ added in v0.0.3
func (*RandomWordResponse) ProtoMessage()
func (*RandomWordResponse) ProtoReflect ¶ added in v0.0.3
func (x *RandomWordResponse) ProtoReflect() protoreflect.Message
func (*RandomWordResponse) Reset ¶ added in v0.0.3
func (x *RandomWordResponse) Reset()
func (*RandomWordResponse) String ¶ added in v0.0.3
func (x *RandomWordResponse) String() string
func (*RandomWordResponse) Validate ¶ added in v0.0.3
func (m *RandomWordResponse) Validate() error
Validate checks the field values on RandomWordResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type RandomWordResponseValidationError ¶ added in v0.0.3
type RandomWordResponseValidationError struct {
// contains filtered or unexported fields
}
RandomWordResponseValidationError is the validation error returned by RandomWordResponse.Validate if the designated constraints aren't met.
func (RandomWordResponseValidationError) Cause ¶ added in v0.0.3
func (e RandomWordResponseValidationError) Cause() error
Cause function returns cause value.
func (RandomWordResponseValidationError) Error ¶ added in v0.0.3
func (e RandomWordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RandomWordResponseValidationError) ErrorName ¶ added in v0.0.3
func (e RandomWordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RandomWordResponseValidationError) Field ¶ added in v0.0.3
func (e RandomWordResponseValidationError) Field() string
Field function returns field value.
func (RandomWordResponseValidationError) Key ¶ added in v0.0.3
func (e RandomWordResponseValidationError) Key() bool
Key function returns key value.
func (RandomWordResponseValidationError) Reason ¶ added in v0.0.3
func (e RandomWordResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMyWordOfTheDayServiceServer ¶
type UnimplementedMyWordOfTheDayServiceServer struct { }
UnimplementedMyWordOfTheDayServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMyWordOfTheDayServiceServer) AddWord ¶
func (UnimplementedMyWordOfTheDayServiceServer) AddWord(context.Context, *AddWordRequest) (*AddWordResponse, error)
func (UnimplementedMyWordOfTheDayServiceServer) DeleteWord ¶
func (UnimplementedMyWordOfTheDayServiceServer) DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordResponse, error)
func (UnimplementedMyWordOfTheDayServiceServer) Heartbeat ¶
func (UnimplementedMyWordOfTheDayServiceServer) Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
func (UnimplementedMyWordOfTheDayServiceServer) ListWords ¶
func (UnimplementedMyWordOfTheDayServiceServer) ListWords(context.Context, *ListWordsRequest) (*ListWordsResponse, error)
func (UnimplementedMyWordOfTheDayServiceServer) RandomWord ¶ added in v0.0.3
func (UnimplementedMyWordOfTheDayServiceServer) RandomWord(context.Context, *RandomWordRequest) (*RandomWordResponse, error)
type UnsafeMyWordOfTheDayServiceServer ¶
type UnsafeMyWordOfTheDayServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMyWordOfTheDayServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MyWordOfTheDayServiceServer will result in compilation errors.
type Word ¶
type Word struct { // The unique identifier of the word. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The word to store Word string `protobuf:"bytes,2,opt,name=word,proto3" json:"word,omitempty"` // A custom definition for the word CustomDefinition string `protobuf:"bytes,3,opt,name=custom_definition,json=customDefinition,proto3" json:"custom_definition,omitempty"` // contains filtered or unexported fields }
func (*Word) Descriptor
deprecated
func (*Word) GetCustomDefinition ¶
func (*Word) ProtoMessage ¶
func (*Word) ProtoMessage()
func (*Word) ProtoReflect ¶
func (x *Word) ProtoReflect() protoreflect.Message
type WordValidationError ¶
type WordValidationError struct {
// contains filtered or unexported fields
}
WordValidationError is the validation error returned by Word.Validate if the designated constraints aren't met.
func (WordValidationError) Cause ¶
func (e WordValidationError) Cause() error
Cause function returns cause value.
func (WordValidationError) Error ¶
func (e WordValidationError) Error() string
Error satisfies the builtin error interface
func (WordValidationError) ErrorName ¶
func (e WordValidationError) ErrorName() string
ErrorName returns error name.
func (WordValidationError) Field ¶
func (e WordValidationError) Field() string
Field function returns field value.
func (WordValidationError) Key ¶
func (e WordValidationError) Key() bool
Key function returns key value.
func (WordValidationError) Reason ¶
func (e WordValidationError) Reason() string
Reason function returns reason value.