model

package
v0.0.0-...-49d8a14 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Count  int    `json:"count"`
	Next   string `json:"next"`
	Search string `json:"search"`
}

TODO: Add field to prevent cursor reuse across unrelated resources

func NewCursor

func NewCursor(filter *Filter) *Cursor

func (Cursor) MarshalGQL

func (cur Cursor) MarshalGQL(w io.Writer)

func (*Cursor) UnmarshalGQL

func (cur *Cursor) UnmarshalGQL(v interface{}) error

type Filter

type Filter struct {
	Count  *int    `json:"count"`
	Search *string `json:"search"`
}

Jump to

Keyboard shortcuts

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