xquery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCursor added in v0.0.14

func DecodeCursor(in string, m interface{}) error

DecodeCursor decodes the cursor entry input.

func EncodeCursor added in v0.0.14

func EncodeCursor(m interface{}) (string, error)

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.

type Cursors added in v0.0.28

type Cursors struct {
	This  string `json:"this,omitempty"`
	Prev  string `json:"prev,omitempty"`
	Next  string `json:"next,omitempty"`
	First string `json:"first,omitempty"`
	Last  string `json:"last,omitempty"`
}

Cursors is the structure that contains all the page cursors.

Jump to

Keyboard shortcuts

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