token

package
v0.0.0-...-9753c4d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid continuation token")
View Source
var File_internal_token_token_proto protoreflect.FileDescriptor
View Source
var TokenFields = struct {
	Ts          string
	Type        string
	LastPrefix  string
	FiltersHash string
	Reverse     string
}{
	Ts:          "ts",
	Type:        "type",
	LastPrefix:  "last_prefix",
	FiltersHash: "filters_hash",
	Reverse:     "reverse",
}

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 (m *Token) CloneMessageVT() proto.Message

func (*Token) CloneVT

func (m *Token) CloneVT() *Token

func (*Token) Decode

func (x *Token) Decode(s string) error

func (*Token) Default

func (x *Token) Default()

func (*Token) Descriptor deprecated

func (*Token) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) Encode

func (x *Token) Encode() (string, error)

func (*Token) EqualMessageVT

func (this *Token) EqualMessageVT(thatMsg proto.Message) bool

func (*Token) EqualVT

func (this *Token) EqualVT(that *Token) bool

func (*Token) GetFiltersHash

func (x *Token) GetFiltersHash() string

func (*Token) GetLastPrefix

func (x *Token) GetLastPrefix() []byte

func (*Token) GetReverse

func (x *Token) GetReverse() bool

func (*Token) GetTs

func (x *Token) GetTs() uint64

func (*Token) GetType

func (x *Token) GetType() string

func (*Token) MarshalToSizedBufferVT

func (m *Token) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Token) MarshalToVT

func (m *Token) MarshalToVT(dAtA []byte) (int, error)

func (*Token) MarshalVT

func (m *Token) MarshalVT() (dAtA []byte, err error)

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) SizeVT

func (m *Token) SizeVT() (n int)

func (*Token) String

func (x *Token) String() string

func (*Token) UnmarshalVT

func (m *Token) UnmarshalVT(dAtA []byte) error

func (*Token) Validate

func (m *Token) Validate() error

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

func (m *Token) ValidateAll() error

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

func (x *Token) ValidateFor(prev *Token) error

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.

Jump to

Keyboard shortcuts

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