Documentation ¶
Index ¶
- Variables
- type Token
- func (m *Token) CloneMessageVT() proto.Message
- func (m *Token) CloneVT() *Token
- func (x *Token) Decode(s string) error
- func (x *Token) Default()
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) Encode() (string, error)
- func (this *Token) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Token) EqualVT(that *Token) bool
- func (x *Token) GetFiltersHash() string
- func (x *Token) GetLastPrefix() []byte
- func (x *Token) GetReverse() bool
- func (x *Token) GetTs() uint64
- func (x *Token) GetType() string
- func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Token) MarshalToVT(dAtA []byte) (int, error)
- func (m *Token) MarshalVT() (dAtA []byte, err error)
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (m *Token) SizeVT() (n int)
- func (x *Token) String() string
- func (m *Token) UnmarshalVT(dAtA []byte) error
- func (m *Token) Validate() error
- func (m *Token) ValidateAll() error
- func (x *Token) ValidateFor(prev *Token) error
- type TokenMultiError
- type TokenValidationError
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("invalid continuation token")
var File_internal_token_token_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { Ts uint64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` LastPrefix []byte `protobuf:"bytes,3,opt,name=last_prefix,json=lastPrefix,proto3" json:"last_prefix,omitempty"` FiltersHash string `protobuf:"bytes,4,opt,name=filters_hash,json=filtersHash,proto3" json:"filters_hash,omitempty"` Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"` // contains filtered or unexported fields }
func (*Token) CloneMessageVT ¶
func (*Token) Descriptor
deprecated
func (*Token) GetFiltersHash ¶
func (*Token) GetLastPrefix ¶
func (*Token) GetReverse ¶
func (*Token) MarshalToSizedBufferVT ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
func (*Token) UnmarshalVT ¶
func (*Token) Validate ¶
Validate checks the field values on Token with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Token) ValidateAll ¶
ValidateAll checks the field values on Token with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenMultiError, or nil if none found.
func (*Token) ValidateFor ¶
type TokenMultiError ¶
type TokenMultiError []error
TokenMultiError is an error wrapping multiple validation errors returned by Token.ValidateAll() if the designated constraints aren't met.
func (TokenMultiError) AllErrors ¶
func (m TokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenMultiError) Error ¶
func (m TokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenValidationError ¶
type TokenValidationError struct {
// contains filtered or unexported fields
}
TokenValidationError is the validation error returned by Token.Validate if the designated constraints aren't met.
func (TokenValidationError) Cause ¶
func (e TokenValidationError) Cause() error
Cause function returns cause value.
func (TokenValidationError) Error ¶
func (e TokenValidationError) Error() string
Error satisfies the builtin error interface
func (TokenValidationError) ErrorName ¶
func (e TokenValidationError) ErrorName() string
ErrorName returns error name.
func (TokenValidationError) Field ¶
func (e TokenValidationError) Field() string
Field function returns field value.
func (TokenValidationError) Key ¶
func (e TokenValidationError) Key() bool
Key function returns key value.
func (TokenValidationError) Reason ¶
func (e TokenValidationError) Reason() string
Reason function returns reason value.