Documentation ¶
Index ¶
- type Name
- func (q *Name) CompareTo(query *Name) int
- func (q *Name) ContainsOption(option Option) bool
- func (q *Name) GetContext() string
- func (q *Name) GetExpiration() int64
- func (q *Name) MarshalCBOR(w *cbor.CBORWriter) error
- func (q *Name) Sort()
- func (q *Name) String() string
- func (q *Name) UnmarshalMap(m map[int]interface{}) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name struct { Context string Name string Types []object.Type Expiration int64 //unix seconds Options []Option KeyPhase int CurrentTime int64 }
Name contains information about the query
func (*Name) CompareTo ¶
CompareTo compares two queries and returns 0 if they are equal, 1 if q is greater than query and -1 if q is smaller than query
func (*Name) ContainsOption ¶
ContainsOption returns true if the query contains the given query option.
func (*Name) GetExpiration ¶
GetExpiration returns q's expiration
func (*Name) MarshalCBOR ¶
func (q *Name) MarshalCBOR(w *cbor.CBORWriter) error
MarshalCBOR implements the CBORMarshaler interface.
func (*Name) UnmarshalMap ¶
UnmarshalMap unpacks a CBOR marshaled map to this struct.
Click to show internal directories.
Click to hide internal directories.