loaders

package
v0.0.0-...-6d36bb5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 13 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 BatchEmoteLoaderByID

type BatchEmoteLoaderByID = *dataloader.DataLoader[primitive.ObjectID, []structures.Emote]

type BatchEmoteSetLoaderByID

type BatchEmoteSetLoaderByID = *dataloader.DataLoader[primitive.ObjectID, []structures.EmoteSet]

type EmoteLoaderByID

type EmoteLoaderByID = *dataloader.DataLoader[primitive.ObjectID, structures.Emote]

type EmoteSetLoaderByID

type EmoteSetLoaderByID = *dataloader.DataLoader[primitive.ObjectID, structures.EmoteSet]

type Instance

type Instance interface {
	UserByID() UserLoaderByID
	UserByUsername() UserLoaderByUsername
	UserByConnectionID(structures.UserConnectionPlatform) UserLoaderByConnectionID
	UserByConnectionUsername(structures.UserConnectionPlatform) UserLoaderByConnectionUsername

	EmoteByID() EmoteLoaderByID
	EmoteByOwnerID() BatchEmoteLoaderByID
	EmoteSetByID() EmoteSetLoaderByID
	EmoteSetByUserID() BatchEmoteSetLoaderByID

	PresenceByActorID() PresenceLoaderByID

	EntitlementsLoader() EntitlementsLoader
}

func New

func New(ctx context.Context, mngo mongo.Instance, rdis redis.Instance, quer *query.Query) Instance

type PresenceLoaderByID

type PresenceLoaderByID = *dataloader.DataLoader[primitive.ObjectID, []structures.UserPresence[bson.Raw]]

type UserLoaderByConnectionID

type UserLoaderByConnectionID = *dataloader.DataLoader[string, structures.User]

type UserLoaderByConnectionUsername

type UserLoaderByConnectionUsername = *dataloader.DataLoader[string, structures.User]

type UserLoaderByID

type UserLoaderByID = *dataloader.DataLoader[primitive.ObjectID, structures.User]

type UserLoaderByUsername

type UserLoaderByUsername = *dataloader.DataLoader[string, structures.User]

Jump to

Keyboard shortcuts

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