Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCursor ¶ added in v0.0.14
DecodeCursor decodes the cursor entry input.
func EncodeCursor ¶ added in v0.0.14
EncodeCursor encodes the cursor into a string.
Types ¶
type CursorEntry ¶
type CursorEntry struct { Type CursorType Value string }
CursorEntry is the entry used by the cursor.
func (*CursorEntry) IsNull ¶
func (c *CursorEntry) IsNull() bool
IsNull checks if the cursor entry is null.
func (CursorEntry) MarshalBinary ¶ added in v0.0.14
func (c CursorEntry) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler interface.
func (*CursorEntry) UnmarshalBinary ¶ added in v0.0.14
func (c *CursorEntry) UnmarshalBinary(in []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler interface.
type CursorType ¶
type CursorType uint8
CursorType is the enumerator that defines the type of the cursor.
const ( CursorTypeUndefined CursorType = iota CursorTypeThis CursorTypePrev CursorTypeNext CursorTypeFirst CursorTypeLast )
Cursors enumerated types. There are 5 defined cursor types:
- This -
- Prev -
- Next -
- First -
- Last -
func (CursorType) IsValid ¶
func (c CursorType) IsValid() bool
IsValid checks if the provided cursor type is valid.
Click to show internal directories.
Click to hide internal directories.