xquery

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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) Decode

func (c *CursorEntry) Decode(in string) error

Decode the cursor entry.

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.

Jump to

Keyboard shortcuts

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