model

package
v0.0.0-...-5a81e2c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: BSD-3-Clause Imports: 4 Imported by: 31

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