mywordoftheday

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: GPL-3.0 Imports: 29 Imported by: 1

Documentation

Overview

Package mywordoftheday is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

Cause function returns cause value.

func (AddWordRequestValidationError) Error

Error satisfies the builtin error interface

func (AddWordRequestValidationError) ErrorName

func (e AddWordRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddWordRequestValidationError) Field

Field function returns field value.

func (AddWordRequestValidationError) Key

Key function returns key value.

func (AddWordRequestValidationError) Reason

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

Cause function returns cause value.

func (AddWordResponseValidationError) Error

Error satisfies the builtin error interface

func (AddWordResponseValidationError) ErrorName

func (e AddWordResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AddWordResponseValidationError) Field

Field function returns field value.

func (AddWordResponseValidationError) Key

Key function returns key value.

func (AddWordResponseValidationError) Reason

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

Cause function returns cause value.

func (DeleteWordRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteWordRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteWordRequestValidationError) Field

Field function returns field value.

func (DeleteWordRequestValidationError) Key

Key function returns key value.

func (DeleteWordRequestValidationError) Reason

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

Cause function returns cause value.

func (DeleteWordResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteWordResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteWordResponseValidationError) Field

Field function returns field value.

func (DeleteWordResponseValidationError) Key

Key function returns key value.

func (DeleteWordResponseValidationError) Reason

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

Cause function returns cause value.

func (HeartbeatRequestValidationError) Error

Error satisfies the builtin error interface

func (HeartbeatRequestValidationError) ErrorName

ErrorName returns error name.

func (HeartbeatRequestValidationError) Field

Field function returns field value.

func (HeartbeatRequestValidationError) Key

Key function returns key value.

func (HeartbeatRequestValidationError) Reason

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

Cause function returns cause value.

func (HeartbeatResponseValidationError) Error

Error satisfies the builtin error interface

func (HeartbeatResponseValidationError) ErrorName

ErrorName returns error name.

func (HeartbeatResponseValidationError) Field

Field function returns field value.

func (HeartbeatResponseValidationError) Key

Key function returns key value.

func (HeartbeatResponseValidationError) Reason

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

Cause function returns cause value.

func (ListWordsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListWordsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListWordsRequestValidationError) Field

Field function returns field value.

func (ListWordsRequestValidationError) Key

Key function returns key value.

func (ListWordsRequestValidationError) Reason

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

Cause function returns cause value.

func (ListWordsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListWordsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListWordsResponseValidationError) Field

Field function returns field value.

func (ListWordsResponseValidationError) Key

Key function returns key value.

func (ListWordsResponseValidationError) Reason

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.

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

Cause function returns cause value.

func (RandomWordRequestValidationError) Error added in v0.0.3

Error satisfies the builtin error interface

func (RandomWordRequestValidationError) ErrorName added in v0.0.3

ErrorName returns error name.

func (RandomWordRequestValidationError) Field added in v0.0.3

Field function returns field value.

func (RandomWordRequestValidationError) Key added in v0.0.3

Key function returns key value.

func (RandomWordRequestValidationError) Reason added in v0.0.3

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

Cause function returns cause value.

func (RandomWordResponseValidationError) Error added in v0.0.3

Error satisfies the builtin error interface

func (RandomWordResponseValidationError) ErrorName added in v0.0.3

ErrorName returns error name.

func (RandomWordResponseValidationError) Field added in v0.0.3

Field function returns field value.

func (RandomWordResponseValidationError) Key added in v0.0.3

Key function returns key value.

func (RandomWordResponseValidationError) Reason added in v0.0.3

Reason function returns reason value.

type UnimplementedMyWordOfTheDayServiceServer

type UnimplementedMyWordOfTheDayServiceServer struct {
}

UnimplementedMyWordOfTheDayServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMyWordOfTheDayServiceServer) AddWord

func (UnimplementedMyWordOfTheDayServiceServer) DeleteWord

func (UnimplementedMyWordOfTheDayServiceServer) Heartbeat

func (UnimplementedMyWordOfTheDayServiceServer) ListWords

func (UnimplementedMyWordOfTheDayServiceServer) RandomWord added in v0.0.3

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

Deprecated: Use Word.ProtoReflect.Descriptor instead.

func (*Word) GetCustomDefinition

func (x *Word) GetCustomDefinition() string

func (*Word) GetId

func (x *Word) GetId() int32

func (*Word) GetWord

func (x *Word) GetWord() string

func (*Word) ProtoMessage

func (*Word) ProtoMessage()

func (*Word) ProtoReflect

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

func (*Word) Reset

func (x *Word) Reset()

func (*Word) String

func (x *Word) String() string

func (*Word) Validate

func (m *Word) Validate() error

Validate checks the field values on Word with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

Jump to

Keyboard shortcuts

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