loaders

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const LoadersKey = utils.Key("dataloaders")

Variables

This section is empty.

Functions

This section is empty.

Types

type Loaders

type Loaders struct {
	// User Loaders
	UserByID       *loaders.UserLoader
	UsersByEmoteID *loaders.BatchUserLoader
	UsersByRoleID  *loaders.BatchUserLoader

	// Emote Loaders
	EmoteByID         *loaders.EmoteLoader
	EmotesByChannelID *loaders.BatchEmoteLoader

	// Emote Set Loaders
	EmoteSetByID     *loaders.EmoteSetLoader
	EmoteSetByUserID *loaders.BatchEmoteSetLoader

	// Role Loaders
	RoleByID *loaders.RoleLoader

	// Report Loaders
	ReportByID       *loaders.ReportLoader
	ReportsByUserID  *loaders.BatchReportLoader
	ReportsByEmoteID *loaders.BatchReportLoader
}

func For

func For(ctx context.Context) *Loaders

func New

func New(gCtx global.Context) *Loaders

Jump to

Keyboard shortcuts

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