escursor

package module
v0.0.0-...-bce7f98 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 3 Imported by: 0

README

escursor

Elasticsearch cursor

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNextToken

func CreateNextToken(size, length int, sortValueHandler SortValueHandler, sliceLastItemHandler SliceLastItemHandler) (string, error)

Types

type Cursorfields

type Cursorfields []interface{}

func (*Cursorfields) DecodeMsg

func (z *Cursorfields) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Cursorfields) EncodeMsg

func (z Cursorfields) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Cursorfields) MarshalMsg

func (z Cursorfields) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Cursorfields) Msgsize

func (z Cursorfields) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Cursorfields) UnmarshalMsg

func (z *Cursorfields) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type QueryCursorBuilder

type QueryCursorBuilder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *QueryCursorBuilder

func (*QueryCursorBuilder) Build

func (c *QueryCursorBuilder) Build() map[string]interface{}

func (*QueryCursorBuilder) Query

func (c *QueryCursorBuilder) Query(query map[string]interface{}) *QueryCursorBuilder

func (*QueryCursorBuilder) Size

func (c *QueryCursorBuilder) Size(size int) *QueryCursorBuilder

func (*QueryCursorBuilder) Sort

func (c *QueryCursorBuilder) Sort(key string, options map[string]interface{}) *QueryCursorBuilder

func (*QueryCursorBuilder) Token

func (c *QueryCursorBuilder) Token(token string) *QueryCursorBuilder

type SliceLastItemHandler

type SliceLastItemHandler func(index int)

type SortValueHandler

type SortValueHandler func(index int) []interface{}

Jump to

Keyboard shortcuts

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