Documentation
¶
Index ¶
- type CommunityLoaderByKey
- func (l *CommunityLoaderByKey) Clear(key persist.CommunityKey)
- func (l *CommunityLoaderByKey) Load(key persist.CommunityKey) (coredb.Community, error)
- func (l *CommunityLoaderByKey) LoadAll(keys []persist.CommunityKey) ([]coredb.Community, []error)
- func (l *CommunityLoaderByKey) LoadAllThunk(keys []persist.CommunityKey) func() ([]coredb.Community, []error)
- func (l *CommunityLoaderByKey) LoadThunk(key persist.CommunityKey) func() (coredb.Community, error)
- func (l *CommunityLoaderByKey) Prime(key persist.CommunityKey, value coredb.Community) bool
- type CommunityLoaderByKeyCacheSubscriptions
- type CommunityLoaderByKeySettings
- type CountAdmiresByCommentIDBatch
- type CountAdmiresByFeedEventIDBatch
- type CountAdmiresByPostIDBatch
- type CountAdmiresByTokenIDBatch
- type CountCommentsByFeedEventIDBatch
- type CountCommentsByPostIDBatch
- type CountGalleriesDisplayingCommunityIDBatch
- type CountInteractionsByFeedEventIDBatch
- type CountInteractionsByPostIDBatch
- type CountRepliesByCommentIDBatch
- type GetAdmireByActorIDAndCommentID
- type GetAdmireByActorIDAndFeedEventID
- type GetAdmireByActorIDAndPostID
- type GetAdmireByActorIDAndTokenID
- type GetAdmireByAdmireIDBatch
- type GetAdmiresByActorIDBatch
- type GetChildContractsByParentIDBatchPaginate
- type GetCollectionByIdBatch
- type GetCollectionsByGalleryIdBatch
- type GetCommentByCommentIDBatch
- type GetCommunitiesByTokenDefinitionID
- type GetCommunityByIDBatch
- type GetCommunityByKey
- type GetContractByChainAddressBatch
- type GetContractCreatorsByIds
- type GetContractsByIDs
- type GetContractsDisplayedByUserIDBatch
- type GetCreatedContractsBatchPaginate
- type GetCreatorsByCommunityID
- type GetEventByIdBatch
- type GetFollowersByUserIdBatch
- type GetFollowingByUserIdBatch
- type GetFrameTokensByCommunityID
- type GetGalleriesByUserIdBatch
- type GetGalleriesDisplayingCommunityIDPaginateBatch
- type GetGalleryByCollectionIdBatch
- type GetGalleryByIdBatch
- type GetGalleryTokenMediasByGalleryIDBatch
- type GetMediaByMediaIdIgnoringStatusBatch
- type GetMembershipByMembershipIdBatch
- type GetMentionsByCommentID
- type GetMentionsByPostID
- type GetNewTokensByFeedEventIdBatch
- type GetNotificationByIDBatch
- type GetOwnersByContractIdBatchPaginate
- type GetPostByIdBatch
- type GetPostsByIdsPaginateBatch
- type GetProfileImageByIdBatch
- type GetSharedCommunitiesBatchPaginate
- type GetSharedFollowersBatchPaginate
- type GetTokenByIdBatch
- type GetTokenByIdIgnoreDisplayableBatch
- type GetTokenByUserTokenIdentifiersBatch
- type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch
- type GetTokenDefinitionByIdBatch
- type GetTokenDefinitionByTokenDbidBatch
- type GetTokensByCollectionIdBatch
- type GetTokensByUserIdBatch
- type GetTokensByWalletIdsBatch
- type GetUserByAddressAndL1Batch
- type GetUserByIdBatch
- type GetUserByUsernameBatch
- type GetUserNotificationsBatch
- type GetUsersByPositionPaginateBatch
- type GetUsersByPositionPersonalizedBatch
- type GetUsersWithTraitBatch
- type GetVisibleCollectionsByIDsPaginateBatch
- type GetWalletByIDBatch
- type GetWalletsByUserIDBatch
- type Loaders
- type PaginateAdmiresByCommentIDBatch
- type PaginateAdmiresByFeedEventIDBatch
- type PaginateAdmiresByPostIDBatch
- type PaginateAdmiresByTokenIDBatch
- type PaginateCommentsByFeedEventIDBatch
- type PaginateCommentsByPostIDBatch
- type PaginateHoldersByCommunityID
- type PaginateInteractionsByFeedEventIDBatch
- type PaginateInteractionsByPostIDBatch
- type PaginatePostsByCommunityID
- type PaginatePostsByContractID
- type PaginateRepliesByCommentIDBatch
- type PaginateTokensAdmiredByUserIDBatch
- type PaginateTokensByCommunityID
- type PostFetchHook
- type PreFetchHook
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 ¶
func (l *CommunityLoaderByKey) Clear(key persist.CommunityKey)
Clear the value at key from the cache, if it exists
func (*CommunityLoaderByKey) Load ¶
func (l *CommunityLoaderByKey) Load(key persist.CommunityKey) (coredb.Community, error)
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 ¶
func (l *CommunityLoaderByKey) Prime(key persist.CommunityKey, value coredb.Community) bool
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 ¶
type CountInteractionsByFeedEventIDBatch struct { generator.Dataloader[coredb.CountInteractionsByFeedEventIDBatchParams, []coredb.CountInteractionsByFeedEventIDBatchRow] }
CountInteractionsByFeedEventIDBatch batches and caches requests
type CountInteractionsByPostIDBatch ¶
type CountInteractionsByPostIDBatch struct { generator.Dataloader[coredb.CountInteractionsByPostIDBatchParams, []coredb.CountInteractionsByPostIDBatchRow] }
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 ¶
GetAdmireByAdmireIDBatch batches and caches requests
type GetAdmiresByActorIDBatch ¶
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 ¶
GetCommentByCommentIDBatch batches and caches requests
type GetCommunitiesByTokenDefinitionID ¶
type GetCommunitiesByTokenDefinitionID struct { generator.Dataloader[persist.DBID, []coredb.Community] }
GetCommunitiesByTokenDefinitionID batches and caches requests
type GetCommunityByIDBatch ¶
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 ¶
GetEventByIdBatch batches and caches requests
type GetFollowersByUserIdBatch ¶
GetFollowersByUserIdBatch batches and caches requests
type GetFollowingByUserIdBatch ¶
GetFollowingByUserIdBatch batches and caches requests
type GetFrameTokensByCommunityID ¶
type GetFrameTokensByCommunityID struct { generator.Dataloader[coredb.GetFrameTokensByCommunityIDParams, []coredb.GetFrameTokensByCommunityIDRow] }
GetFrameTokensByCommunityID batches and caches requests
type GetGalleriesByUserIdBatch ¶
GetGalleriesByUserIdBatch batches and caches requests
type GetGalleriesDisplayingCommunityIDPaginateBatch ¶
type GetGalleriesDisplayingCommunityIDPaginateBatch struct { generator.Dataloader[coredb.GetGalleriesDisplayingCommunityIDPaginateBatchParams, []coredb.GetGalleriesDisplayingCommunityIDPaginateBatchRow] }
GetGalleriesDisplayingCommunityIDPaginateBatch batches and caches requests
type GetGalleryByCollectionIdBatch ¶
GetGalleryByCollectionIdBatch batches and caches requests
type GetGalleryByIdBatch ¶
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 ¶
GetMentionsByCommentID batches and caches requests
type GetMentionsByPostID ¶
GetMentionsByPostID batches and caches requests
type GetNewTokensByFeedEventIdBatch ¶
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 ¶
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 ¶
type GetSharedCommunitiesBatchPaginate struct { generator.Dataloader[coredb.GetSharedCommunitiesBatchPaginateParams, []coredb.GetSharedCommunitiesBatchPaginateRow] }
GetSharedCommunitiesBatchPaginate batches and caches requests
type GetSharedFollowersBatchPaginate ¶
type GetSharedFollowersBatchPaginate struct { generator.Dataloader[coredb.GetSharedFollowersBatchPaginateParams, []coredb.GetSharedFollowersBatchPaginateRow] }
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 ¶
type GetTokenByUserTokenIdentifiersBatch struct { generator.Dataloader[coredb.GetTokenByUserTokenIdentifiersBatchParams, coredb.GetTokenByUserTokenIdentifiersBatchRow] }
GetTokenByUserTokenIdentifiersBatch batches and caches requests
type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch ¶
type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatch struct { generator.Dataloader[coredb.GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchParams, coredb.GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchRow] }
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 ¶
type GetTokensByUserIdBatch struct { generator.Dataloader[coredb.GetTokensByUserIdBatchParams, []coredb.GetTokensByUserIdBatchRow] }
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 ¶
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 ¶
GetWalletByIDBatch batches and caches requests
type GetWalletsByUserIDBatch ¶
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 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 ¶
type PaginateInteractionsByFeedEventIDBatch struct { generator.Dataloader[coredb.PaginateInteractionsByFeedEventIDBatchParams, []coredb.PaginateInteractionsByFeedEventIDBatchRow] }
PaginateInteractionsByFeedEventIDBatch batches and caches requests
type PaginateInteractionsByPostIDBatch ¶
type PaginateInteractionsByPostIDBatch struct { generator.Dataloader[coredb.PaginateInteractionsByPostIDBatchParams, []coredb.PaginateInteractionsByPostIDBatchRow] }
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 ¶
type PaginateTokensAdmiredByUserIDBatch struct { generator.Dataloader[coredb.PaginateTokensAdmiredByUserIDBatchParams, []coredb.PaginateTokensAdmiredByUserIDBatchRow] }
PaginateTokensAdmiredByUserIDBatch batches and caches requests
type PaginateTokensByCommunityID ¶
type PaginateTokensByCommunityID struct { generator.Dataloader[coredb.PaginateTokensByCommunityIDParams, []coredb.PaginateTokensByCommunityIDRow] }
PaginateTokensByCommunityID batches and caches requests