query

package
v0.0.0-...-3961de6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const EMOTES_QUERY_LIMIT = 300

Variables

This section is empty.

Functions

Types

type Resolver

type Resolver struct {
	types.Resolver
}

func (*Resolver) CurrentUser

func (r *Resolver) CurrentUser(ctx context.Context) (*model.User, error)

func (*Resolver) Emote

func (r *Resolver) Emote(ctx context.Context, id primitive.ObjectID) (*model.Emote, error)

func (*Resolver) EmoteSet

func (r *Resolver) EmoteSet(ctx context.Context, id primitive.ObjectID) (*model.EmoteSet, error)

func (*Resolver) Emotes

func (r *Resolver) Emotes(ctx context.Context, query string, pageArg *int, limitArg *int, filterArg *model.EmoteSearchFilter, sortArg *model.Sort) (*model.EmoteSearchResult, error)

func (*Resolver) Inbox

func (r *Resolver) Inbox(ctx context.Context, afterID *primitive.ObjectID) ([]*model.Message, error)

func (*Resolver) NamedEmoteSet

func (r *Resolver) NamedEmoteSet(ctx context.Context, name model.EmoteSetName) (*model.EmoteSet, error)

func (*Resolver) Report

func (r *Resolver) Report(ctx context.Context, id primitive.ObjectID) (*model.Report, error)

func (*Resolver) Reports

func (r *Resolver) Reports(ctx context.Context, status *model.ReportStatus, limit *int, afterID *string, beforeID *string) ([]*model.Report, error)

func (*Resolver) Role

func (r *Resolver) Role(ctx context.Context, id primitive.ObjectID) (*model.Role, error)

func (*Resolver) Roles

func (r *Resolver) Roles(ctx context.Context) ([]*model.Role, error)

func (*Resolver) User

func (r *Resolver) User(ctx context.Context, id primitive.ObjectID) (*model.User, error)

func (*Resolver) Users

func (r *Resolver) Users(ctx context.Context, query string) ([]*model.User, error)

type Sort

type Sort struct {
	Value string    `json:"value"`
	Order SortOrder `json:"order"`
}

type SortOrder

type SortOrder string
var (
	SortOrderAscending  SortOrder = "ASCENDING"
	SortOrderDescending SortOrder = "DESCENDING"
)

Jump to

Keyboard shortcuts

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