dataloader

package
v0.0.0-...-476b611 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommunityLoaderByKey

type CommunityLoaderByKey struct {
	// contains filtered or unexported fields
}

CommunityLoaderByKey batches and caches requests

func NewCommunityLoaderByKey

func NewCommunityLoaderByKey(
	settings CommunityLoaderByKeySettings, fetch func(ctx context.Context, keys []persist.CommunityKey) ([]coredb.Community, []error),
	funcs CommunityLoaderByKeyCacheSubscriptions,
	opts ...func(interface {
		setContext(context.Context)
		setWait(time.Duration)
		setMaxBatch(int)
		setDisableCaching(bool)
		setPublishResults(bool)
		setPreFetchHook(func(context.Context, string) context.Context)
		setPostFetchHook(func(context.Context, string))
	}),
) *CommunityLoaderByKey

NewCommunityLoaderByKey creates a new CommunityLoaderByKey with the given settings, functions, and options

func (*CommunityLoaderByKey) Clear

Clear the value at key from the cache, if it exists

func (*CommunityLoaderByKey) Load

Load a Community by key, batching and caching will be applied automatically

func (*CommunityLoaderByKey) LoadAll

func (l *CommunityLoaderByKey) LoadAll(keys []persist.CommunityKey) ([]coredb.Community, []error)

LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured

func (*CommunityLoaderByKey) LoadAllThunk

func (l *CommunityLoaderByKey) LoadAllThunk(keys []persist.CommunityKey) func() ([]coredb.Community, []error)

LoadAllThunk returns a function that when called will block waiting for a Communitys. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.

func (*CommunityLoaderByKey) LoadThunk

func (l *CommunityLoaderByKey) LoadThunk(key persist.CommunityKey) func() (coredb.Community, error)

LoadThunk returns a function that when called will block waiting for a Community. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.

func (*CommunityLoaderByKey) Prime

Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)

type CommunityLoaderByKeyCacheSubscriptions

type CommunityLoaderByKeyCacheSubscriptions struct {
	// AutoCacheWithKey is a function that returns the persist.CommunityKey cache key for a coredb.Community.
	// If AutoCacheWithKey is not nil, this loader will automatically cache published results from other loaders
	// that return a coredb.Community. Loaders that return pointers or slices of coredb.Community
	// will be dereferenced/iterated automatically, invoking this function with the base coredb.Community type.
	AutoCacheWithKey func(coredb.Community) persist.CommunityKey

	// AutoCacheWithKeys is a function that returns the []persist.CommunityKey cache keys for a coredb.Community.
	// Similar to AutoCacheWithKey, but for cases where a single value gets cached by many keys.
	// If AutoCacheWithKeys is not nil, this loader will automatically cache published results from other loaders
	// that return a coredb.Community. Loaders that return pointers or slices of coredb.Community
	// will be dereferenced/iterated automatically, invoking this function with the base coredb.Community type.
	AutoCacheWithKeys func(coredb.Community) []persist.CommunityKey
}

CommunityLoaderByKeyCacheSubscriptions

type CommunityLoaderByKeySettings

type CommunityLoaderByKeySettings interface {
	// contains filtered or unexported methods
}

type CountAdmiresByCommentIDBatch

type CountAdmiresByCommentIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountAdmiresByCommentIDBatch batches and caches requests

type CountAdmiresByFeedEventIDBatch

type CountAdmiresByFeedEventIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountAdmiresByFeedEventIDBatch batches and caches requests

type CountAdmiresByPostIDBatch

type CountAdmiresByPostIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountAdmiresByPostIDBatch batches and caches requests

type CountAdmiresByTokenIDBatch

type CountAdmiresByTokenIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountAdmiresByTokenIDBatch batches and caches requests

type CountCommentsByFeedEventIDBatch

type CountCommentsByFeedEventIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountCommentsByFeedEventIDBatch batches and caches requests

type CountCommentsByPostIDBatch

type CountCommentsByPostIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountCommentsByPostIDBatch batches and caches requests

type CountGalleriesDisplayingCommunityIDBatch

type CountGalleriesDisplayingCommunityIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountGalleriesDisplayingCommunityIDBatch batches and caches requests

type CountInteractionsByFeedEventIDBatch

CountInteractionsByFeedEventIDBatch batches and caches requests

type CountInteractionsByPostIDBatch

CountInteractionsByPostIDBatch batches and caches requests

type CountRepliesByCommentIDBatch

type CountRepliesByCommentIDBatch struct {
	generator.Dataloader[persist.DBID, int64]
}

CountRepliesByCommentIDBatch batches and caches requests

type GetAdmireByActorIDAndCommentID

type GetAdmireByActorIDAndCommentID struct {
	generator.Dataloader[coredb.GetAdmireByActorIDAndCommentIDParams, coredb.Admire]
}

GetAdmireByActorIDAndCommentID batches and caches requests

type GetAdmireByActorIDAndFeedEventID

type GetAdmireByActorIDAndFeedEventID struct {
	generator.Dataloader[coredb.GetAdmireByActorIDAndFeedEventIDParams, coredb.Admire]
}

GetAdmireByActorIDAndFeedEventID batches and caches requests

type GetAdmireByActorIDAndPostID

type GetAdmireByActorIDAndPostID struct {
	generator.Dataloader[coredb.GetAdmireByActorIDAndPostIDParams, coredb.Admire]
}

GetAdmireByActorIDAndPostID batches and caches requests

type GetAdmireByActorIDAndTokenID

type GetAdmireByActorIDAndTokenID struct {
	generator.Dataloader[coredb.GetAdmireByActorIDAndTokenIDParams, coredb.Admire]
}

GetAdmireByActorIDAndTokenID batches and caches requests

type GetAdmireByAdmireIDBatch

type GetAdmireByAdmireIDBatch struct {
	generator.Dataloader[persist.DBID, coredb.Admire]
}

GetAdmireByAdmireIDBatch batches and caches requests

type GetAdmiresByActorIDBatch

type GetAdmiresByActorIDBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Admire]
}

GetAdmiresByActorIDBatch batches and caches requests

type GetChildContractsByParentIDBatchPaginate

type GetChildContractsByParentIDBatchPaginate struct {
	generator.Dataloader[coredb.GetChildContractsByParentIDBatchPaginateParams, []coredb.Contract]
}

GetChildContractsByParentIDBatchPaginate batches and caches requests

type GetCollectionByIdBatch

type GetCollectionByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.Collection]
}

GetCollectionByIdBatch batches and caches requests

type GetCollectionsByGalleryIdBatch

type GetCollectionsByGalleryIdBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Collection]
}

GetCollectionsByGalleryIdBatch batches and caches requests

type GetCommentByCommentIDBatch

type GetCommentByCommentIDBatch struct {
	generator.Dataloader[persist.DBID, coredb.Comment]
}

GetCommentByCommentIDBatch batches and caches requests

type GetCommunitiesByTokenDefinitionID

type GetCommunitiesByTokenDefinitionID struct {
	generator.Dataloader[persist.DBID, []coredb.Community]
}

GetCommunitiesByTokenDefinitionID batches and caches requests

type GetCommunityByIDBatch

type GetCommunityByIDBatch struct {
	generator.Dataloader[persist.DBID, coredb.Community]
}

GetCommunityByIDBatch batches and caches requests

type GetCommunityByKey

type GetCommunityByKey struct {
	generator.Dataloader[coredb.GetCommunityByKeyParams, coredb.Community]
}

GetCommunityByKey batches and caches requests

type GetContractByChainAddressBatch

type GetContractByChainAddressBatch struct {
	generator.Dataloader[coredb.GetContractByChainAddressBatchParams, coredb.Contract]
}

GetContractByChainAddressBatch batches and caches requests

type GetContractCreatorsByIds

type GetContractCreatorsByIds struct {
	generator.Dataloader[string, coredb.ContractCreator]
}

GetContractCreatorsByIds batches and caches requests

type GetContractsByIDs

type GetContractsByIDs struct {
	generator.Dataloader[string, coredb.Contract]
}

GetContractsByIDs batches and caches requests

type GetContractsDisplayedByUserIDBatch

type GetContractsDisplayedByUserIDBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Contract]
}

GetContractsDisplayedByUserIDBatch batches and caches requests

type GetCreatedContractsBatchPaginate

type GetCreatedContractsBatchPaginate struct {
	generator.Dataloader[coredb.GetCreatedContractsBatchPaginateParams, []coredb.Contract]
}

GetCreatedContractsBatchPaginate batches and caches requests

type GetCreatorsByCommunityID

type GetCreatorsByCommunityID struct {
	generator.Dataloader[persist.DBID, []coredb.GetCreatorsByCommunityIDRow]
}

GetCreatorsByCommunityID batches and caches requests

type GetEventByIdBatch

type GetEventByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.FeedEvent]
}

GetEventByIdBatch batches and caches requests

type GetFollowersByUserIdBatch

type GetFollowersByUserIdBatch struct {
	generator.Dataloader[persist.DBID, []coredb.User]
}

GetFollowersByUserIdBatch batches and caches requests

type GetFollowingByUserIdBatch

type GetFollowingByUserIdBatch struct {
	generator.Dataloader[persist.DBID, []coredb.User]
}

GetFollowingByUserIdBatch batches and caches requests

type GetFrameTokensByCommunityID

GetFrameTokensByCommunityID batches and caches requests

type GetGalleriesByUserIdBatch

type GetGalleriesByUserIdBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Gallery]
}

GetGalleriesByUserIdBatch batches and caches requests

type GetGalleriesDisplayingCommunityIDPaginateBatch

GetGalleriesDisplayingCommunityIDPaginateBatch batches and caches requests

type GetGalleryByCollectionIdBatch

type GetGalleryByCollectionIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.Gallery]
}

GetGalleryByCollectionIdBatch batches and caches requests

type GetGalleryByIdBatch

type GetGalleryByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.Gallery]
}

GetGalleryByIdBatch batches and caches requests

type GetGalleryTokenMediasByGalleryIDBatch

type GetGalleryTokenMediasByGalleryIDBatch struct {
	generator.Dataloader[persist.DBID, []coredb.TokenMedia]
}

GetGalleryTokenMediasByGalleryIDBatch batches and caches requests

type GetMediaByMediaIdIgnoringStatusBatch

type GetMediaByMediaIdIgnoringStatusBatch struct {
	generator.Dataloader[persist.DBID, coredb.TokenMedia]
}

GetMediaByMediaIdIgnoringStatusBatch batches and caches requests

type GetMembershipByMembershipIdBatch

type GetMembershipByMembershipIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.Membership]
}

GetMembershipByMembershipIdBatch batches and caches requests

type GetMentionsByCommentID

type GetMentionsByCommentID struct {
	generator.Dataloader[persist.DBID, []coredb.Mention]
}

GetMentionsByCommentID batches and caches requests

type GetMentionsByPostID

type GetMentionsByPostID struct {
	generator.Dataloader[persist.DBID, []coredb.Mention]
}

GetMentionsByPostID batches and caches requests

type GetNewTokensByFeedEventIdBatch

type GetNewTokensByFeedEventIdBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Token]
}

GetNewTokensByFeedEventIdBatch batches and caches requests

type GetNotificationByIDBatch

type GetNotificationByIDBatch struct {
	generator.Dataloader[persist.DBID, coredb.Notification]
}

GetNotificationByIDBatch batches and caches requests

type GetOwnersByContractIdBatchPaginate

type GetOwnersByContractIdBatchPaginate struct {
	generator.Dataloader[coredb.GetOwnersByContractIdBatchPaginateParams, []coredb.User]
}

GetOwnersByContractIdBatchPaginate batches and caches requests

type GetPostByIdBatch

type GetPostByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.Post]
}

GetPostByIdBatch batches and caches requests

type GetPostsByIdsPaginateBatch

type GetPostsByIdsPaginateBatch struct {
	generator.Dataloader[coredb.GetPostsByIdsPaginateBatchParams, []coredb.Post]
}

GetPostsByIdsPaginateBatch batches and caches requests

type GetProfileImageByIdBatch

type GetProfileImageByIdBatch struct {
	generator.Dataloader[coredb.GetProfileImageByIdBatchParams, coredb.ProfileImage]
}

GetProfileImageByIdBatch batches and caches requests

type GetSharedCommunitiesBatchPaginate

GetSharedCommunitiesBatchPaginate batches and caches requests

type GetSharedFollowersBatchPaginate

GetSharedFollowersBatchPaginate batches and caches requests

type GetTokenByIdBatch

type GetTokenByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.GetTokenByIdBatchRow]
}

GetTokenByIdBatch batches and caches requests

type GetTokenByIdIgnoreDisplayableBatch

type GetTokenByIdIgnoreDisplayableBatch struct {
	generator.Dataloader[persist.DBID, coredb.GetTokenByIdIgnoreDisplayableBatchRow]
}

GetTokenByIdIgnoreDisplayableBatch batches and caches requests

type GetTokenByUserTokenIdentifiersBatch

GetTokenByUserTokenIdentifiersBatch batches and caches requests

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch

GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch batches and caches requests

type GetTokenDefinitionByIdBatch

type GetTokenDefinitionByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.TokenDefinition]
}

GetTokenDefinitionByIdBatch batches and caches requests

type GetTokenDefinitionByTokenDbidBatch

type GetTokenDefinitionByTokenDbidBatch struct {
	generator.Dataloader[persist.DBID, coredb.TokenDefinition]
}

GetTokenDefinitionByTokenDbidBatch batches and caches requests

type GetTokensByCollectionIdBatch

type GetTokensByCollectionIdBatch struct {
	generator.Dataloader[coredb.GetTokensByCollectionIdBatchParams, []coredb.Token]
}

GetTokensByCollectionIdBatch batches and caches requests

type GetTokensByUserIdBatch

GetTokensByUserIdBatch batches and caches requests

type GetTokensByWalletIdsBatch

type GetTokensByWalletIdsBatch struct {
	generator.Dataloader[persist.DBIDList, []coredb.GetTokensByWalletIdsBatchRow]
}

GetTokensByWalletIdsBatch batches and caches requests

type GetUserByAddressAndL1Batch

type GetUserByAddressAndL1Batch struct {
	generator.Dataloader[coredb.GetUserByAddressAndL1BatchParams, coredb.User]
}

GetUserByAddressAndL1Batch batches and caches requests

type GetUserByIdBatch

type GetUserByIdBatch struct {
	generator.Dataloader[persist.DBID, coredb.User]
}

GetUserByIdBatch batches and caches requests

type GetUserByUsernameBatch

type GetUserByUsernameBatch struct {
	generator.Dataloader[string, coredb.User]
}

GetUserByUsernameBatch batches and caches requests

type GetUserNotificationsBatch

type GetUserNotificationsBatch struct {
	generator.Dataloader[coredb.GetUserNotificationsBatchParams, []coredb.Notification]
}

GetUserNotificationsBatch batches and caches requests

type GetUsersByPositionPaginateBatch

type GetUsersByPositionPaginateBatch struct {
	generator.Dataloader[coredb.GetUsersByPositionPaginateBatchParams, []coredb.User]
}

GetUsersByPositionPaginateBatch batches and caches requests

type GetUsersByPositionPersonalizedBatch

type GetUsersByPositionPersonalizedBatch struct {
	generator.Dataloader[coredb.GetUsersByPositionPersonalizedBatchParams, []coredb.User]
}

GetUsersByPositionPersonalizedBatch batches and caches requests

type GetUsersWithTraitBatch

type GetUsersWithTraitBatch struct {
	generator.Dataloader[string, []coredb.User]
}

GetUsersWithTraitBatch batches and caches requests

type GetVisibleCollectionsByIDsPaginateBatch

type GetVisibleCollectionsByIDsPaginateBatch struct {
	generator.Dataloader[coredb.GetVisibleCollectionsByIDsPaginateBatchParams, []coredb.Collection]
}

GetVisibleCollectionsByIDsPaginateBatch batches and caches requests

type GetWalletByIDBatch

type GetWalletByIDBatch struct {
	generator.Dataloader[persist.DBID, coredb.Wallet]
}

GetWalletByIDBatch batches and caches requests

type GetWalletsByUserIDBatch

type GetWalletsByUserIDBatch struct {
	generator.Dataloader[persist.DBID, []coredb.Wallet]
}

GetWalletsByUserIDBatch batches and caches requests

type Loaders

type Loaders struct {
	CountAdmiresByCommentIDBatch                         *CountAdmiresByCommentIDBatch
	CountAdmiresByFeedEventIDBatch                       *CountAdmiresByFeedEventIDBatch
	CountAdmiresByPostIDBatch                            *CountAdmiresByPostIDBatch
	CountAdmiresByTokenIDBatch                           *CountAdmiresByTokenIDBatch
	CountCommentsByFeedEventIDBatch                      *CountCommentsByFeedEventIDBatch
	CountCommentsByPostIDBatch                           *CountCommentsByPostIDBatch
	CountGalleriesDisplayingCommunityIDBatch             *CountGalleriesDisplayingCommunityIDBatch
	CountInteractionsByFeedEventIDBatch                  *CountInteractionsByFeedEventIDBatch
	CountInteractionsByPostIDBatch                       *CountInteractionsByPostIDBatch
	CountRepliesByCommentIDBatch                         *CountRepliesByCommentIDBatch
	GetAdmireByActorIDAndCommentID                       *GetAdmireByActorIDAndCommentID
	GetAdmireByActorIDAndFeedEventID                     *GetAdmireByActorIDAndFeedEventID
	GetAdmireByActorIDAndPostID                          *GetAdmireByActorIDAndPostID
	GetAdmireByActorIDAndTokenID                         *GetAdmireByActorIDAndTokenID
	GetAdmireByAdmireIDBatch                             *GetAdmireByAdmireIDBatch
	GetAdmiresByActorIDBatch                             *GetAdmiresByActorIDBatch
	GetChildContractsByParentIDBatchPaginate             *GetChildContractsByParentIDBatchPaginate
	GetCollectionByIdBatch                               *GetCollectionByIdBatch
	GetCollectionsByGalleryIdBatch                       *GetCollectionsByGalleryIdBatch
	GetCommentByCommentIDBatch                           *GetCommentByCommentIDBatch
	GetCommunitiesByTokenDefinitionID                    *GetCommunitiesByTokenDefinitionID
	GetCommunityByIDBatch                                *GetCommunityByIDBatch
	GetCommunityByKey                                    *GetCommunityByKey
	GetContractByChainAddressBatch                       *GetContractByChainAddressBatch
	GetContractsDisplayedByUserIDBatch                   *GetContractsDisplayedByUserIDBatch
	GetCreatedContractsBatchPaginate                     *GetCreatedContractsBatchPaginate
	GetCreatorsByCommunityID                             *GetCreatorsByCommunityID
	GetEventByIdBatch                                    *GetEventByIdBatch
	GetFollowersByUserIdBatch                            *GetFollowersByUserIdBatch
	GetFollowingByUserIdBatch                            *GetFollowingByUserIdBatch
	GetFrameTokensByCommunityID                          *GetFrameTokensByCommunityID
	GetGalleriesByUserIdBatch                            *GetGalleriesByUserIdBatch
	GetGalleriesDisplayingCommunityIDPaginateBatch       *GetGalleriesDisplayingCommunityIDPaginateBatch
	GetGalleryByCollectionIdBatch                        *GetGalleryByCollectionIdBatch
	GetGalleryByIdBatch                                  *GetGalleryByIdBatch
	GetGalleryTokenMediasByGalleryIDBatch                *GetGalleryTokenMediasByGalleryIDBatch
	GetMediaByMediaIdIgnoringStatusBatch                 *GetMediaByMediaIdIgnoringStatusBatch
	GetMembershipByMembershipIdBatch                     *GetMembershipByMembershipIdBatch
	GetMentionsByCommentID                               *GetMentionsByCommentID
	GetMentionsByPostID                                  *GetMentionsByPostID
	GetNewTokensByFeedEventIdBatch                       *GetNewTokensByFeedEventIdBatch
	GetNotificationByIDBatch                             *GetNotificationByIDBatch
	GetOwnersByContractIdBatchPaginate                   *GetOwnersByContractIdBatchPaginate
	GetPostByIdBatch                                     *GetPostByIdBatch
	GetPostsByIdsPaginateBatch                           *GetPostsByIdsPaginateBatch
	GetProfileImageByIdBatch                             *GetProfileImageByIdBatch
	GetSharedCommunitiesBatchPaginate                    *GetSharedCommunitiesBatchPaginate
	GetSharedFollowersBatchPaginate                      *GetSharedFollowersBatchPaginate
	GetTokenByIdBatch                                    *GetTokenByIdBatch
	GetTokenByIdIgnoreDisplayableBatch                   *GetTokenByIdIgnoreDisplayableBatch
	GetTokenByUserTokenIdentifiersBatch                  *GetTokenByUserTokenIdentifiersBatch
	GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch *GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch
	GetTokenDefinitionByIdBatch                          *GetTokenDefinitionByIdBatch
	GetTokenDefinitionByTokenDbidBatch                   *GetTokenDefinitionByTokenDbidBatch
	GetTokensByCollectionIdBatch                         *GetTokensByCollectionIdBatch
	GetTokensByUserIdBatch                               *GetTokensByUserIdBatch
	GetTokensByWalletIdsBatch                            *GetTokensByWalletIdsBatch
	GetUserByAddressAndL1Batch                           *GetUserByAddressAndL1Batch
	GetUserByIdBatch                                     *GetUserByIdBatch
	GetUserByUsernameBatch                               *GetUserByUsernameBatch
	GetUserNotificationsBatch                            *GetUserNotificationsBatch
	GetUsersByPositionPaginateBatch                      *GetUsersByPositionPaginateBatch
	GetUsersByPositionPersonalizedBatch                  *GetUsersByPositionPersonalizedBatch
	GetUsersWithTraitBatch                               *GetUsersWithTraitBatch
	GetVisibleCollectionsByIDsPaginateBatch              *GetVisibleCollectionsByIDsPaginateBatch
	GetWalletByIDBatch                                   *GetWalletByIDBatch
	GetWalletsByUserIDBatch                              *GetWalletsByUserIDBatch
	PaginateAdmiresByCommentIDBatch                      *PaginateAdmiresByCommentIDBatch
	PaginateAdmiresByFeedEventIDBatch                    *PaginateAdmiresByFeedEventIDBatch
	PaginateAdmiresByPostIDBatch                         *PaginateAdmiresByPostIDBatch
	PaginateAdmiresByTokenIDBatch                        *PaginateAdmiresByTokenIDBatch
	PaginateCommentsByFeedEventIDBatch                   *PaginateCommentsByFeedEventIDBatch
	PaginateCommentsByPostIDBatch                        *PaginateCommentsByPostIDBatch
	PaginateHoldersByCommunityID                         *PaginateHoldersByCommunityID
	PaginateInteractionsByFeedEventIDBatch               *PaginateInteractionsByFeedEventIDBatch
	PaginateInteractionsByPostIDBatch                    *PaginateInteractionsByPostIDBatch
	PaginatePostsByCommunityID                           *PaginatePostsByCommunityID
	PaginatePostsByContractID                            *PaginatePostsByContractID
	PaginateRepliesByCommentIDBatch                      *PaginateRepliesByCommentIDBatch
	PaginateTokensAdmiredByUserIDBatch                   *PaginateTokensAdmiredByUserIDBatch
	PaginateTokensByCommunityID                          *PaginateTokensByCommunityID
	GetContractCreatorsByIds                             *GetContractCreatorsByIds
	GetContractsByIDs                                    *GetContractsByIDs
}

func NewLoaders

func NewLoaders(ctx context.Context, q *coredb.Queries, disableCaching bool, preFetchHook PreFetchHook, postFetchHook PostFetchHook) *Loaders

type PaginateAdmiresByCommentIDBatch

type PaginateAdmiresByCommentIDBatch struct {
	generator.Dataloader[coredb.PaginateAdmiresByCommentIDBatchParams, []coredb.Admire]
}

PaginateAdmiresByCommentIDBatch batches and caches requests

type PaginateAdmiresByFeedEventIDBatch

type PaginateAdmiresByFeedEventIDBatch struct {
	generator.Dataloader[coredb.PaginateAdmiresByFeedEventIDBatchParams, []coredb.Admire]
}

PaginateAdmiresByFeedEventIDBatch batches and caches requests

type PaginateAdmiresByPostIDBatch

type PaginateAdmiresByPostIDBatch struct {
	generator.Dataloader[coredb.PaginateAdmiresByPostIDBatchParams, []coredb.Admire]
}

PaginateAdmiresByPostIDBatch batches and caches requests

type PaginateAdmiresByTokenIDBatch

type PaginateAdmiresByTokenIDBatch struct {
	generator.Dataloader[coredb.PaginateAdmiresByTokenIDBatchParams, []coredb.Admire]
}

PaginateAdmiresByTokenIDBatch batches and caches requests

type PaginateCommentsByFeedEventIDBatch

type PaginateCommentsByFeedEventIDBatch struct {
	generator.Dataloader[coredb.PaginateCommentsByFeedEventIDBatchParams, []coredb.Comment]
}

PaginateCommentsByFeedEventIDBatch batches and caches requests

type PaginateCommentsByPostIDBatch

type PaginateCommentsByPostIDBatch struct {
	generator.Dataloader[coredb.PaginateCommentsByPostIDBatchParams, []coredb.Comment]
}

PaginateCommentsByPostIDBatch batches and caches requests

type PaginateHoldersByCommunityID

type PaginateHoldersByCommunityID struct {
	generator.Dataloader[coredb.PaginateHoldersByCommunityIDParams, []coredb.User]
}

PaginateHoldersByCommunityID batches and caches requests

type PaginateInteractionsByFeedEventIDBatch

PaginateInteractionsByFeedEventIDBatch batches and caches requests

type PaginateInteractionsByPostIDBatch

PaginateInteractionsByPostIDBatch batches and caches requests

type PaginatePostsByCommunityID

type PaginatePostsByCommunityID struct {
	generator.Dataloader[coredb.PaginatePostsByCommunityIDParams, []coredb.Post]
}

PaginatePostsByCommunityID batches and caches requests

type PaginatePostsByContractID

type PaginatePostsByContractID struct {
	generator.Dataloader[coredb.PaginatePostsByContractIDParams, []coredb.Post]
}

PaginatePostsByContractID batches and caches requests

type PaginateRepliesByCommentIDBatch

type PaginateRepliesByCommentIDBatch struct {
	generator.Dataloader[coredb.PaginateRepliesByCommentIDBatchParams, []coredb.Comment]
}

PaginateRepliesByCommentIDBatch batches and caches requests

type PaginateTokensAdmiredByUserIDBatch

PaginateTokensAdmiredByUserIDBatch batches and caches requests

type PaginateTokensByCommunityID

PaginateTokensByCommunityID batches and caches requests

type PostFetchHook

type PostFetchHook func(context.Context, string)

type PreFetchHook

type PreFetchHook func(context.Context, string) context.Context

Jump to

Keyboard shortcuts

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