Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCursorEntry ¶
func DecodeCursorEntry(in string, u CursorEntryUnmarshaler) error
DecodeCursorEntry decodes the cursor entry input.
func EncodeCursorEntry ¶
func EncodeCursorEntry(m CursorEntryMarshaler) (string, error)
EncodeCursorEntry 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) Encode ¶
func (c CursorEntry) Encode() string
func (*CursorEntry) IsNull ¶
func (c *CursorEntry) IsNull() bool
IsNull checks if the cursor entry is null.
type CursorEntryMarshaler ¶
type CursorEntryMarshaler interface {
encoding.BinaryMarshaler
GetType() CursorType
}
CursorEntryMarshaler is an interace used to marshal custom cursor entries.
type CursorEntryUnmarshaler ¶
type CursorEntryUnmarshaler interface {
encoding.BinaryUnmarshaler
SetType(t CursorType)
}
CursorEntryUnmarshaler is the interface used to unmarshal the custom cursor entry.
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.
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.