Documentation ¶
Index ¶
- Variables
- func AddTo(ctx *gin.Context, api *PublicAPI)
- func GetOnboardingUserRecommendationsBootstrap(q *db.Queries) func(ctx context.Context) ([]persist.DBID, error)
- func PushTo(ctx context.Context, api *PublicAPI) context.Context
- type AuthAPI
- func (api AuthAPI) ForceAuthTokenRefresh(ctx context.Context, userID persist.DBID) error
- func (api AuthAPI) GenerateQRCodeLoginToken(ctx context.Context) (string, error)
- func (api AuthAPI) GetAuthNonce(ctx context.Context) (nonce string, message string, err error)
- func (api AuthAPI) Login(ctx context.Context, authenticator auth.Authenticator) (persist.DBID, error)
- func (api AuthAPI) Logout(ctx context.Context)
- func (api AuthAPI) NewDebugAuthenticator(ctx context.Context, debugParams model.DebugAuth) (auth.Authenticator, error)
- func (api AuthAPI) NewMagicLinkAuthenticator(token token.Token) auth.Authenticator
- func (api AuthAPI) NewNeynarAuthenticator(custodyAddress persist.ChainPubKey, primaryAddress *persist.ChainPubKey, ...) auth.Authenticator
- func (api AuthAPI) NewNonceAuthenticator(chainAddress persist.ChainPubKey, nonce string, message string, ...) auth.Authenticator
- func (api AuthAPI) NewOneTimeLoginTokenAuthenticator(loginToken string) auth.Authenticator
- func (api AuthAPI) NewPrivyAuthenticator(authToken string) auth.Authenticator
- type CardAPI
- type CollectionAPI
- func (api CollectionAPI) CreateCollection(ctx context.Context, galleryID persist.DBID, name string, ...) (*db.Collection, *db.FeedEvent, error)
- func (api CollectionAPI) DeleteCollection(ctx context.Context, collectionID persist.DBID) error
- func (api CollectionAPI) GetCollectionById(ctx context.Context, collectionID persist.DBID) (*db.Collection, error)
- func (api CollectionAPI) GetCollectionsByGalleryId(ctx context.Context, galleryID persist.DBID) ([]db.Collection, error)
- func (api CollectionAPI) GetCollectionsByIds(ctx context.Context, collectionIDs []persist.DBID) ([]*db.Collection, []error)
- func (api CollectionAPI) GetTopCollectionsForCommunity(ctx context.Context, chainAddress persist.ChainAddress, before, after *string, ...) (c []db.Collection, pageInfo PageInfo, err error)
- func (api CollectionAPI) UpdateCollectionGallery(ctx context.Context, collectionID, galleryID persist.DBID) (persist.DBID, error)
- func (api CollectionAPI) UpdateCollectionHidden(ctx context.Context, collectionID persist.DBID, hidden bool) error
- func (api CollectionAPI) UpdateCollectionInfo(ctx context.Context, collectionID persist.DBID, name string, ...) error
- func (api CollectionAPI) UpdateCollectionTokens(ctx context.Context, collectionID persist.DBID, tokens []persist.DBID, ...) (*db.FeedEvent, error)
- type CommunityAPI
- func (api CommunityAPI) GetCommunityByID(ctx context.Context, communityID persist.DBID) (*db.Community, error)
- func (api CommunityAPI) GetCommunityByKey(ctx context.Context, communityKey persist.CommunityKey) (*db.Community, error)
- func (api CommunityAPI) GetCreatorsByCommunityID(ctx context.Context, communityID persist.DBID) ([]db.GetCreatorsByCommunityIDRow, error)
- func (api CommunityAPI) GetFrameTokensByCommunityID(ctx context.Context, communityID persist.DBID, limit int32) ([]db.Token, error)
- func (api CommunityAPI) PaginateHoldersByCommunityID(ctx context.Context, communityID persist.DBID, before, after *string, ...) ([]db.User, PageInfo, error)
- func (api CommunityAPI) PaginatePostsByCommunityID(ctx context.Context, communityID persist.DBID, before, after *string, ...) ([]db.Post, PageInfo, error)
- func (api CommunityAPI) PaginateTokensByCommunityID(ctx context.Context, communityID persist.DBID, before, after *string, ...) ([]db.Token, PageInfo, error)
- type ContractAPI
- func (api ContractAPI) GetChildContractsByParentID(ctx context.Context, contractID persist.DBID, before, after *string, ...) ([]db.Contract, PageInfo, error)
- func (api ContractAPI) GetCommunityOwnersByContractAddress(ctx context.Context, contractAddress persist.ChainAddress, ...) ([]db.User, PageInfo, error)
- func (api ContractAPI) GetCommunityPostsByContractID(ctx context.Context, contractID persist.DBID, before, after *string, ...) ([]db.Post, PageInfo, error)
- func (api ContractAPI) GetCommunityPostsByContractIDAndProjectID(ctx context.Context, contractID persist.DBID, projectID int, ...) ([]db.Post, PageInfo, error)
- func (api ContractAPI) GetContractByAddress(ctx context.Context, contractAddress persist.ChainAddress) (*db.Contract, error)
- func (api ContractAPI) GetContractByID(ctx context.Context, contractID persist.DBID) (*db.Contract, error)
- func (api ContractAPI) GetContractCreatorByContractID(ctx context.Context, contractID persist.DBID) (db.ContractCreator, error)
- func (api ContractAPI) GetContractsDisplayedByUserID(ctx context.Context, userID persist.DBID) ([]db.Contract, error)
- func (api ContractAPI) GetPreviewURLsByContractIDandUserID(ctx context.Context, userID, contractID persist.DBID) ([]string, error)
- func (api ContractAPI) RefreshContract(ctx context.Context, contractID persist.DBID) error
- type EnsAvatar
- type ErrTokenRefreshFailed
- type FeedAPI
- func (api FeedAPI) BanUser(ctx context.Context, userId persist.DBID, reason persist.ReportReason) error
- func (api FeedAPI) DeletePostById(ctx context.Context, postID persist.DBID) error
- func (api FeedAPI) ForYouFeed(ctx context.Context, before, after *string, first, last *int) ([]any, PageInfo, error)
- func (api FeedAPI) GetFeedEventById(ctx context.Context, feedEventID persist.DBID) (*db.FeedEvent, error)
- func (api FeedAPI) GetPostById(ctx context.Context, postID persist.DBID) (*db.Post, error)
- func (api FeedAPI) GetRawEventById(ctx context.Context, eventID persist.DBID) (*db.Event, error)
- func (api FeedAPI) GlobalFeed(ctx context.Context, before *string, after *string, first *int, last *int) ([]any, PageInfo, error)
- func (api FeedAPI) PersonalFeed(ctx context.Context, before *string, after *string, first *int, last *int) ([]any, PageInfo, error)
- func (api FeedAPI) PostTokens(ctx context.Context, tokenIDs []persist.DBID, mentions []*model.MentionInput, ...) (persist.DBID, error)
- func (api FeedAPI) ReferralPostPreflight(ctx context.Context, t persist.TokenIdentifiers) error
- func (api FeedAPI) ReferralPostToken(ctx context.Context, t persist.TokenIdentifiers, caption, mintURL *string) (persist.DBID, error)
- func (api FeedAPI) TrendingFeed(ctx context.Context, before *string, after *string, first *int, last *int) ([]any, PageInfo, error)
- func (api FeedAPI) TrendingUsers(ctx context.Context, report model.Window) ([]db.User, error)
- func (api FeedAPI) UnbanUser(ctx context.Context, userId persist.DBID) error
- func (api FeedAPI) UserFeed(ctx context.Context, userID persist.DBID, before *string, after *string, ...) ([]db.Post, PageInfo, error)
- type GalleryAPI
- func (api GalleryAPI) CreateGallery(ctx context.Context, name, description *string, position string) (db.Gallery, error)
- func (api GalleryAPI) DeleteGallery(ctx context.Context, galleryID persist.DBID) error
- func (api GalleryAPI) GetGalleriesByUserId(ctx context.Context, userID persist.DBID) ([]db.Gallery, error)
- func (api GalleryAPI) GetGalleriesDisplayingCommunityID(ctx context.Context, communityID persist.DBID, before *string, after *string, ...) ([]db.Gallery, [][]persist.Media, [][]time.Time, PageInfo, error)
- func (api GalleryAPI) GetGalleryByCollectionId(ctx context.Context, collectionID persist.DBID) (*db.Gallery, error)
- func (api GalleryAPI) GetGalleryById(ctx context.Context, galleryID persist.DBID) (*db.Gallery, error)
- func (api GalleryAPI) GetTokenPreviewsByGalleryID(ctx context.Context, galleryID persist.DBID) ([]db.TokenMedia, error)
- func (api GalleryAPI) GetViewerGalleryById(ctx context.Context, galleryID persist.DBID) (*db.Gallery, error)
- func (api GalleryAPI) PublishGallery(ctx context.Context, update model.PublishGalleryInput) error
- func (api GalleryAPI) UpdateGallery(ctx context.Context, update model.UpdateGalleryInput) (db.Gallery, error)
- func (api GalleryAPI) UpdateGalleryCollections(ctx context.Context, galleryID persist.DBID, collections []persist.DBID) error
- func (api GalleryAPI) UpdateGalleryHidden(ctx context.Context, galleryID persist.DBID, hidden bool) (db.Gallery, error)
- func (api GalleryAPI) UpdateGalleryInfo(ctx context.Context, galleryID persist.DBID, name, description *string) error
- func (api GalleryAPI) UpdateGalleryPositions(ctx context.Context, positions []*model.GalleryPositionInput) error
- func (api GalleryAPI) ViewGallery(ctx context.Context, galleryID persist.DBID) (db.Gallery, error)
- type InteractionAPI
- func (api InteractionAPI) AdmireComment(ctx context.Context, commentID persist.DBID) (persist.DBID, error)
- func (api InteractionAPI) AdmireFeedEvent(ctx context.Context, feedEventID persist.DBID) (persist.DBID, error)
- func (api InteractionAPI) AdmirePost(ctx context.Context, postID persist.DBID) (persist.DBID, error)
- func (api InteractionAPI) AdmireToken(ctx context.Context, tokenID persist.DBID) (persist.DBID, error)
- func (api InteractionAPI) CommentOnFeedEvent(ctx context.Context, feedEventID persist.DBID, replyToID *persist.DBID, ...) (persist.DBID, error)
- func (api InteractionAPI) CommentOnPost(ctx context.Context, postID persist.DBID, replyToID *persist.DBID, ...) (persist.DBID, error)
- func (api InteractionAPI) GetAdmireByActorIDAndCommentID(ctx context.Context, actorID persist.DBID, commentID persist.DBID) (*db.Admire, error)
- func (api InteractionAPI) GetAdmireByActorIDAndFeedEventID(ctx context.Context, actorID persist.DBID, feedEventID persist.DBID) (*db.Admire, error)
- func (api InteractionAPI) GetAdmireByActorIDAndPostID(ctx context.Context, actorID persist.DBID, postID persist.DBID) (*db.Admire, error)
- func (api InteractionAPI) GetAdmireByActorIDAndTokenID(ctx context.Context, actorID persist.DBID, tokenID persist.DBID) (*db.Admire, error)
- func (api InteractionAPI) GetAdmireByID(ctx context.Context, admireID persist.DBID) (*db.Admire, error)
- func (api InteractionAPI) GetCommentByID(ctx context.Context, commentID persist.DBID) (*db.Comment, error)
- func (api InteractionAPI) GetMentionsByCommentID(ctx context.Context, commentID persist.DBID) ([]db.Mention, error)
- func (api InteractionAPI) GetMentionsByPostID(ctx context.Context, postID persist.DBID) ([]db.Mention, error)
- func (api InteractionAPI) GetTotalCommentsByFeedEventID(ctx context.Context, feedEventID persist.DBID) (*int, error)
- func (api InteractionAPI) GetTotalCommentsByPostID(ctx context.Context, postID persist.DBID) (*int, error)
- func (api InteractionAPI) PaginateAdmiresByCommentID(ctx context.Context, commentID persist.DBID, before *string, after *string, ...) ([]db.Admire, PageInfo, error)
- func (api InteractionAPI) PaginateAdmiresByFeedEventID(ctx context.Context, feedEventID persist.DBID, before *string, after *string, ...) ([]db.Admire, PageInfo, error)
- func (api InteractionAPI) PaginateAdmiresByPostID(ctx context.Context, postID persist.DBID, before *string, after *string, ...) ([]db.Admire, PageInfo, error)
- func (api InteractionAPI) PaginateAdmiresByTokenID(ctx context.Context, tokenID persist.DBID, before *string, after *string, ...) ([]db.Admire, PageInfo, error)
- func (api InteractionAPI) PaginateCommentsByFeedEventID(ctx context.Context, feedEventID persist.DBID, before *string, after *string, ...) ([]db.Comment, PageInfo, error)
- func (api InteractionAPI) PaginateCommentsByPostID(ctx context.Context, postID persist.DBID, before *string, after *string, ...) ([]db.Comment, PageInfo, error)
- func (api InteractionAPI) PaginateInteractionsByFeedEventID(ctx context.Context, feedEventID persist.DBID, before *string, after *string, ...) ([]any, PageInfo, error)
- func (api InteractionAPI) PaginateInteractionsByPostID(ctx context.Context, postID persist.DBID, before *string, after *string, ...) ([]any, PageInfo, error)
- func (api InteractionAPI) PaginateRepliesByCommentID(ctx context.Context, commentID persist.DBID, before *string, after *string, ...) ([]db.Comment, PageInfo, error)
- func (api InteractionAPI) RemoveAdmire(ctx context.Context, admireID persist.DBID) (persist.DBID, persist.DBID, error)
- func (api InteractionAPI) RemoveComment(ctx context.Context, commentID persist.DBID) (persist.DBID, persist.DBID, error)
- func (api InteractionAPI) ReportPost(ctx context.Context, postID persist.DBID, reason persist.ReportReason) error
- type InteractionKey
- type MerchAPI
- func (api MerchAPI) GetMerchTokenByTokenID(ctx context.Context, tokenID persist.HexTokenID) (*model.MerchToken, error)
- func (api MerchAPI) GetMerchTokens(ctx context.Context, address persist.Address) ([]*model.MerchToken, error)
- func (api MerchAPI) RedeemMerchItems(ctx context.Context, tokenIDs []persist.HexTokenID, ...) ([]*model.MerchToken, error)
- type MintAPI
- type MiscAPI
- type NotificationsAPI
- func (api NotificationsAPI) ClearUserNotifications(ctx context.Context) ([]db.Notification, error)
- func (api NotificationsAPI) GetByID(ctx context.Context, id persist.DBID) (db.Notification, error)
- func (api NotificationsAPI) GetViewerNotifications(ctx context.Context, before, after *string, first *int, last *int) ([]db.Notification, PageInfo, int, error)
- type PageInfo
- type PublicAPI
- type SearchAPI
- func (api SearchAPI) SearchCommunities(ctx context.Context, query string, limit int, nameWeight float32, ...) ([]db.Community, error)
- func (api SearchAPI) SearchGalleries(ctx context.Context, query string, limit int, nameWeight float32, ...) ([]db.Gallery, error)
- func (api SearchAPI) SearchUsers(ctx context.Context, query string, limit int, usernameWeight float32, ...) ([]db.User, error)
- type SocialAPI
- func (s *SocialAPI) DisconnectSocialAccount(ctx context.Context, socialType persist.SocialProvider) error
- func (api SocialAPI) GetConnections(ctx context.Context, socialProvider persist.SocialProvider, ...) ([]model.SocialConnection, error)
- func (api SocialAPI) GetConnectionsPaginate(ctx context.Context, socialProvider persist.SocialProvider, ...) ([]model.SocialConnection, PageInfo, error)
- func (api SocialAPI) GetFarcasterFollowingByUserID(ctx context.Context, userID persist.DBID) ([]farcaster.NeynarUser, error)
- func (s SocialAPI) NewFarcasterAuthenticator(userID persist.DBID, address persist.Address, withSigner bool) *socialauth.FarcasterAuthenticator
- func (s SocialAPI) NewLensAuthenticator(userID persist.DBID, address persist.Address, sig string) *socialauth.LensAuthenticator
- func (s SocialAPI) NewTwitterAuthenticator(userID persist.DBID, authCode string) *socialauth.TwitterAuthenticator
- type TimeIDPaginator
- type TimeIDPagingParams
- type TokenAPI
- func (api TokenAPI) GetCommunitiesByTokenDefinitionID(ctx context.Context, tokenDefinitionID persist.DBID) ([]db.Community, error)
- func (api TokenAPI) GetMediaByMediaID(ctx context.Context, id persist.DBID) (db.TokenMedia, error)
- func (api TokenAPI) GetMediaByTokenIdentifiers(ctx context.Context, tokenIdentifiers persist.TokenIdentifiers) (db.TokenDefinition, db.TokenMedia, error)
- func (api TokenAPI) GetNewTokensByFeedEventID(ctx context.Context, eventID persist.DBID) ([]db.Token, error)
- func (api TokenAPI) GetProcessingStateByTokenDefinitionID(ctx context.Context, id persist.DBID) (bool, error)
- func (api TokenAPI) GetTokenByEnsDomain(ctx context.Context, userID persist.DBID, domain string) (db.Token, db.TokenDefinition, db.TokenMedia, error)
- func (api TokenAPI) GetTokenById(ctx context.Context, tokenID persist.DBID) (*db.Token, error)
- func (api TokenAPI) GetTokenByIdIgnoreDisplayable(ctx context.Context, tokenID persist.DBID) (*db.Token, error)
- func (api TokenAPI) GetTokenDefinitionByID(ctx context.Context, id persist.DBID) (db.TokenDefinition, error)
- func (api TokenAPI) GetTokensBookmarkedByUserId(ctx context.Context, userID persist.DBID, before, after *string, ...) ([]db.Token, PageInfo, error)
- func (api TokenAPI) GetTokensByCollectionId(ctx context.Context, collectionID persist.DBID, limit *int) ([]db.Token, error)
- func (api TokenAPI) GetTokensByContractIdPaginate(ctx context.Context, contractID persist.DBID, before, after *string, ...) ([]db.Token, PageInfo, error)
- func (api TokenAPI) GetTokensByIDs(ctx context.Context, tokenIDs []persist.DBID) ([]db.Token, error)
- func (api TokenAPI) GetTokensByUserID(ctx context.Context, userID persist.DBID, ...) ([]db.Token, error)
- func (api TokenAPI) GetTokensByWalletID(ctx context.Context, walletID persist.DBID) ([]db.Token, error)
- func (api TokenAPI) RefreshCollection(ctx context.Context, collectionDBID persist.DBID) error
- func (api TokenAPI) RefreshToken(ctx context.Context, tokenDBID persist.DBID) error
- func (api TokenAPI) SetSpamPreference(ctx context.Context, tokens []persist.DBID, isSpam bool) error
- func (api TokenAPI) SyncCreatedTokensAdmin(ctx context.Context, includeChains []persist.Chain, userID persist.DBID) error
- func (api TokenAPI) SyncCreatedTokensForExistingContract(ctx context.Context, contractID persist.DBID) error
- func (api TokenAPI) SyncCreatedTokensForExistingContractAdmin(ctx context.Context, userID persist.DBID, chainAddress persist.ChainAddress) error
- func (api TokenAPI) SyncCreatedTokensForNewContracts(ctx context.Context, includeChains []persist.Chain, incrementally bool) error
- func (api TokenAPI) SyncTokens(ctx context.Context, chains []persist.Chain, incrementally bool) error
- func (api TokenAPI) SyncTokensAdmin(ctx context.Context, chains []persist.Chain, userID persist.DBID) error
- func (api TokenAPI) UpdateTokenInfo(ctx context.Context, tokenID persist.DBID, collectionID persist.DBID, ...) error
- func (api TokenAPI) ViewToken(ctx context.Context, tokenID persist.DBID, collectionID persist.DBID) (db.Event, error)
- type UserAPI
- func (api UserAPI) AddSocialAccountToUser(ctx context.Context, authenticator socialauth.Authenticator, display bool) error
- func (api UserAPI) AddWalletToUser(ctx context.Context, chainAddress persist.ChainAddress, ...) error
- func (api UserAPI) BlockUser(ctx context.Context, userID persist.DBID) error
- func (api UserAPI) CreatePushTokenForUser(ctx context.Context, pushToken string) (db.PushNotificationToken, error)
- func (api UserAPI) CreateUser(ctx context.Context, authenticator auth.Authenticator, username string, ...) (userID persist.DBID, galleryID persist.DBID, err error)
- func (api UserAPI) CreatedCommunities(ctx context.Context, userID persist.DBID, includeChains []persist.Chain, ...) ([]db.Contract, PageInfo, error)
- func (api UserAPI) DeletePushTokenByPushToken(ctx context.Context, pushToken string) error
- func (api UserAPI) FollowAllOnboardingRecommendations(ctx context.Context, curStr *string) error
- func (api UserAPI) FollowAllSocialConnections(ctx context.Context, socialType persist.SocialProvider) error
- func (api UserAPI) FollowUser(ctx context.Context, userID persist.DBID) error
- func (api UserAPI) GetCurrentUserEmailNotificationSettings(ctx context.Context) (persist.EmailUnsubscriptions, error)
- func (api UserAPI) GetDisplayedSocials(ctx context.Context, userID persist.DBID) (*model.SocialAccounts, error)
- func (api UserAPI) GetFollowersByUserId(ctx context.Context, userID persist.DBID) ([]db.User, error)
- func (api UserAPI) GetFollowingByUserId(ctx context.Context, userID persist.DBID) ([]db.User, error)
- func (api UserAPI) GetLoggedInUserId(ctx context.Context) persist.DBID
- func (api UserAPI) GetMembershipByMembershipId(ctx context.Context, membershipID persist.DBID) (*db.Membership, error)
- func (api UserAPI) GetMembershipTiers(ctx context.Context, forceRefresh bool) ([]persist.MembershipTier, error)
- func (api UserAPI) GetPotentialENSProfileImageByUserID(ctx context.Context, userID persist.DBID) (a EnsAvatar, err error)
- func (api UserAPI) GetProfileImageByUserID(ctx context.Context, userID persist.DBID) (db.ProfileImage, error)
- func (api UserAPI) GetSocials(ctx context.Context, userID persist.DBID) (*model.SocialAccounts, error)
- func (api UserAPI) GetSuggestedUsers(ctx context.Context, before, after *string, first, last *int) ([]db.User, PageInfo, error)
- func (api UserAPI) GetSuggestedUsersFarcaster(ctx context.Context, before, after *string, first, last *int) ([]db.User, PageInfo, error)
- func (api UserAPI) GetUserByAddress(ctx context.Context, chainAddress persist.ChainAddress) (*db.User, error)
- func (api UserAPI) GetUserById(ctx context.Context, userID persist.DBID) (*db.User, error)
- func (api UserAPI) GetUserByUsername(ctx context.Context, username string) (*db.User, error)
- func (api UserAPI) GetUserByVerifiedEmailAddress(ctx context.Context, emailAddress persist.Email) (*db.User, error)
- func (api UserAPI) GetUserExperiences(ctx context.Context, userID persist.DBID) ([]*model.UserExperience, error)
- func (api *UserAPI) GetUserRolesByUserID(ctx context.Context, userID persist.DBID) ([]persist.Role, error)
- func (api UserAPI) GetUserWithPII(ctx context.Context) (*db.PiiUserView, error)
- func (api UserAPI) GetUsersByAddresses(ctx context.Context, chainAddresses []persist.ChainAddress) ([]db.User, error)
- func (api UserAPI) GetUsersByIDs(ctx context.Context, userIDs []persist.DBID, before, after *string, ...) ([]db.User, PageInfo, error)
- func (api UserAPI) GetUsersWithTrait(ctx context.Context, trait string) ([]db.User, error)
- func (api UserAPI) IsMemberOfCommunity(ctx context.Context, userID persist.DBID, communityID persist.DBID) (bool, error)
- func (api UserAPI) IsUserLoggedIn(ctx context.Context) bool
- func (api *UserAPI) OptInForRoles(ctx context.Context, roles []persist.Role) (*db.User, error)
- func (api *UserAPI) OptOutForRoles(ctx context.Context, roles []persist.Role) (*db.User, error)
- func (api UserAPI) PaginateUsersWithRole(ctx context.Context, role persist.Role, before *string, after *string, ...) ([]db.User, PageInfo, error)
- func (api UserAPI) RemoveProfileImage(ctx context.Context) error
- func (api UserAPI) RemoveWalletsFromUser(ctx context.Context, walletIDs []persist.DBID) error
- func (api UserAPI) ResendEmailVerification(ctx context.Context) error
- func (api UserAPI) SetPersona(ctx context.Context, persona persist.Persona) error
- func (api UserAPI) SetProfileImage(ctx context.Context, tokenID *persist.DBID, ...) error
- func (api UserAPI) SharedCommunities(ctx context.Context, userID persist.DBID, before, after *string, ...) ([]db.Community, PageInfo, error)
- func (api UserAPI) SharedFollowers(ctx context.Context, userID persist.DBID, before, after *string, ...) ([]db.User, PageInfo, error)
- func (api UserAPI) UnblockUser(ctx context.Context, userID persist.DBID) error
- func (api UserAPI) UnfollowUser(ctx context.Context, userID persist.DBID) error
- func (api UserAPI) UpdateFeaturedGallery(ctx context.Context, galleryID persist.DBID) error
- func (api UserAPI) UpdateUserEmailNotificationSettings(ctx context.Context, settings persist.EmailUnsubscriptions) error
- func (api UserAPI) UpdateUserEmailWithAuthenticator(ctx context.Context, email persist.Email, authenticator auth.Authenticator) error
- func (api UserAPI) UpdateUserEmailWithManualVerification(ctx context.Context, email persist.Email) error
- func (api UserAPI) UpdateUserExperience(ctx context.Context, experienceType model.UserExperienceType, value bool) error
- func (api UserAPI) UpdateUserInfo(ctx context.Context, username string, bio string) error
- func (api UserAPI) UpdateUserNotificationSettings(ctx context.Context, notificationSettings persist.UserNotificationSettings) error
- func (api UserAPI) UpdateUserPrimaryWallet(ctx context.Context, primaryWalletID persist.DBID) error
- func (api UserAPI) UpdateUserSocialDisplayed(ctx context.Context, socialType persist.SocialProvider, displayed bool) error
- func (api *UserAPI) UserIsAdmin(ctx context.Context) bool
- func (api UserAPI) VerifiedEmailAddressExists(ctx context.Context, emailAddress persist.Email) (bool, error)
- type WalletAPI
- func (api WalletAPI) GetWalletByID(ctx context.Context, walletID persist.DBID) (*db.Wallet, error)
- func (api WalletAPI) GetWalletsByIDs(ctx context.Context, walletIDs []persist.DBID) ([]db.Wallet, error)
- func (api WalletAPI) GetWalletsByUserID(ctx context.Context, userID persist.DBID) ([]db.Wallet, error)
Constants ¶
This section is empty.
Variables ¶
var ErrMintAlreadyClaimed = fmt.Errorf("already claimed mint for this collection")
var ErrMintTxPending = fmt.Errorf("transaction is pending")
var ErrOnlyRemoveOwnAdmire = errors.New("only the actor who created the admire can remove it")
var ErrOnlyRemoveOwnComment = errors.New("only the actor who created the comment can remove it")
var ErrProfileImageNotTokenOwner = errors.New("user is not an owner of the token")
var ErrProfileImageNotWalletOwner = errors.New("user is not the owner of the wallet")
var ErrProfileImageTooManySources = errors.New("too many profile image sources provided")
var ErrProfileImageUnknownSource = errors.New("unknown profile image source to use")
var ErrTokensNotOwnedByUser = errors.New("not all tokens are owned by user")
Functions ¶
Types ¶
type AuthAPI ¶
type AuthAPI struct {
// contains filtered or unexported fields
}
func (AuthAPI) ForceAuthTokenRefresh ¶
func (AuthAPI) GenerateQRCodeLoginToken ¶
func (AuthAPI) GetAuthNonce ¶
func (AuthAPI) NewDebugAuthenticator ¶
func (AuthAPI) NewMagicLinkAuthenticator ¶
func (api AuthAPI) NewMagicLinkAuthenticator(token token.Token) auth.Authenticator
func (AuthAPI) NewNeynarAuthenticator ¶
func (api AuthAPI) NewNeynarAuthenticator(custodyAddress persist.ChainPubKey, primaryAddress *persist.ChainPubKey, nonce string, message string, signature string, walletType persist.WalletType) auth.Authenticator
func (AuthAPI) NewNonceAuthenticator ¶
func (api AuthAPI) NewNonceAuthenticator(chainAddress persist.ChainPubKey, nonce string, message string, signature string, walletType persist.WalletType) auth.Authenticator
func (AuthAPI) NewOneTimeLoginTokenAuthenticator ¶
func (api AuthAPI) NewOneTimeLoginTokenAuthenticator(loginToken string) auth.Authenticator
func (AuthAPI) NewPrivyAuthenticator ¶
func (api AuthAPI) NewPrivyAuthenticator(authToken string) auth.Authenticator
type CardAPI ¶
type CardAPI struct {
// contains filtered or unexported fields
}
func (*CardAPI) MintPremiumCardToWallet ¶
type CollectionAPI ¶
type CollectionAPI struct {
// contains filtered or unexported fields
}
func (CollectionAPI) CreateCollection ¶
func (CollectionAPI) DeleteCollection ¶
func (CollectionAPI) GetCollectionById ¶
func (api CollectionAPI) GetCollectionById(ctx context.Context, collectionID persist.DBID) (*db.Collection, error)
func (CollectionAPI) GetCollectionsByGalleryId ¶
func (api CollectionAPI) GetCollectionsByGalleryId(ctx context.Context, galleryID persist.DBID) ([]db.Collection, error)
func (CollectionAPI) GetCollectionsByIds ¶
func (api CollectionAPI) GetCollectionsByIds(ctx context.Context, collectionIDs []persist.DBID) ([]*db.Collection, []error)
func (CollectionAPI) GetTopCollectionsForCommunity ¶
func (api CollectionAPI) GetTopCollectionsForCommunity(ctx context.Context, chainAddress persist.ChainAddress, before, after *string, first, last *int) (c []db.Collection, pageInfo PageInfo, err error)
func (CollectionAPI) UpdateCollectionGallery ¶
func (api CollectionAPI) UpdateCollectionGallery(ctx context.Context, collectionID, galleryID persist.DBID) (persist.DBID, error)
UpdateCollectionGallery updates the gallery of a collection and returns the ID of the old gallery.
func (CollectionAPI) UpdateCollectionHidden ¶
func (CollectionAPI) UpdateCollectionInfo ¶
func (CollectionAPI) UpdateCollectionTokens ¶
type CommunityAPI ¶
type CommunityAPI struct {
// contains filtered or unexported fields
}
func (CommunityAPI) GetCommunityByID ¶
func (CommunityAPI) GetCommunityByKey ¶
func (api CommunityAPI) GetCommunityByKey(ctx context.Context, communityKey persist.CommunityKey) (*db.Community, error)
func (CommunityAPI) GetCreatorsByCommunityID ¶
func (api CommunityAPI) GetCreatorsByCommunityID(ctx context.Context, communityID persist.DBID) ([]db.GetCreatorsByCommunityIDRow, error)
func (CommunityAPI) GetFrameTokensByCommunityID ¶
func (api CommunityAPI) GetFrameTokensByCommunityID(ctx context.Context, communityID persist.DBID, limit int32) ([]db.Token, error)
GetFrameTokensByCommunityID is temporary and shouldn't be used outside of the TokensForFrame resolver
func (CommunityAPI) PaginateHoldersByCommunityID ¶
func (CommunityAPI) PaginatePostsByCommunityID ¶
type ContractAPI ¶
type ContractAPI struct {
// contains filtered or unexported fields
}
func (ContractAPI) GetChildContractsByParentID ¶
func (ContractAPI) GetCommunityOwnersByContractAddress ¶
func (ContractAPI) GetCommunityPostsByContractID ¶
func (ContractAPI) GetCommunityPostsByContractIDAndProjectID ¶
func (api ContractAPI) GetCommunityPostsByContractIDAndProjectID(ctx context.Context, contractID persist.DBID, projectID int, before, after *string, first, last *int) ([]db.Post, PageInfo, error)
------ Temporary ------
func (ContractAPI) GetContractByAddress ¶
func (api ContractAPI) GetContractByAddress(ctx context.Context, contractAddress persist.ChainAddress) (*db.Contract, error)
func (ContractAPI) GetContractByID ¶
func (ContractAPI) GetContractCreatorByContractID ¶
func (api ContractAPI) GetContractCreatorByContractID(ctx context.Context, contractID persist.DBID) (db.ContractCreator, error)
func (ContractAPI) GetContractsDisplayedByUserID ¶
func (ContractAPI) GetPreviewURLsByContractIDandUserID ¶
func (ContractAPI) RefreshContract ¶
RefreshContract refreshes the metadata for a given contract DBID
type ErrTokenRefreshFailed ¶
type ErrTokenRefreshFailed struct {
Message string
}
ErrTokenRefreshFailed is a generic error that wraps all other OpenSea sync failures. Should be removed once we stop using OpenSea to sync NFTs.
func (ErrTokenRefreshFailed) Error ¶
func (e ErrTokenRefreshFailed) Error() string
type FeedAPI ¶
type FeedAPI struct {
// contains filtered or unexported fields
}
func (FeedAPI) DeletePostById ¶
func (FeedAPI) ForYouFeed ¶
func (FeedAPI) GetFeedEventById ¶
func (FeedAPI) GetPostById ¶
func (FeedAPI) GetRawEventById ¶
func (FeedAPI) GlobalFeed ¶
func (FeedAPI) PersonalFeed ¶
func (FeedAPI) PostTokens ¶
func (FeedAPI) ReferralPostPreflight ¶
func (FeedAPI) ReferralPostToken ¶
func (FeedAPI) TrendingFeed ¶
func (FeedAPI) TrendingUsers ¶
type GalleryAPI ¶
type GalleryAPI struct {
// contains filtered or unexported fields
}
func (GalleryAPI) CreateGallery ¶
func (GalleryAPI) DeleteGallery ¶
func (GalleryAPI) GetGalleriesByUserId ¶
func (GalleryAPI) GetGalleriesDisplayingCommunityID ¶
func (GalleryAPI) GetGalleryByCollectionId ¶
func (GalleryAPI) GetGalleryById ¶
func (GalleryAPI) GetTokenPreviewsByGalleryID ¶
func (api GalleryAPI) GetTokenPreviewsByGalleryID(ctx context.Context, galleryID persist.DBID) ([]db.TokenMedia, error)
func (GalleryAPI) GetViewerGalleryById ¶
func (GalleryAPI) PublishGallery ¶
func (api GalleryAPI) PublishGallery(ctx context.Context, update model.PublishGalleryInput) error
func (GalleryAPI) UpdateGallery ¶
func (api GalleryAPI) UpdateGallery(ctx context.Context, update model.UpdateGalleryInput) (db.Gallery, error)
func (GalleryAPI) UpdateGalleryCollections ¶
func (GalleryAPI) UpdateGalleryHidden ¶
func (GalleryAPI) UpdateGalleryInfo ¶
func (GalleryAPI) UpdateGalleryPositions ¶
func (api GalleryAPI) UpdateGalleryPositions(ctx context.Context, positions []*model.GalleryPositionInput) error
func (GalleryAPI) ViewGallery ¶
type InteractionAPI ¶
type InteractionAPI struct {
// contains filtered or unexported fields
}
func (InteractionAPI) AdmireComment ¶
func (InteractionAPI) AdmireFeedEvent ¶
func (InteractionAPI) AdmirePost ¶
func (InteractionAPI) AdmireToken ¶
func (InteractionAPI) CommentOnFeedEvent ¶
func (InteractionAPI) CommentOnPost ¶
func (InteractionAPI) GetAdmireByActorIDAndCommentID ¶
func (InteractionAPI) GetAdmireByActorIDAndFeedEventID ¶
func (InteractionAPI) GetAdmireByActorIDAndPostID ¶
func (InteractionAPI) GetAdmireByActorIDAndTokenID ¶
func (InteractionAPI) GetAdmireByID ¶
func (InteractionAPI) GetCommentByID ¶
func (InteractionAPI) GetMentionsByCommentID ¶
func (InteractionAPI) GetMentionsByPostID ¶
func (InteractionAPI) GetTotalCommentsByFeedEventID ¶
func (InteractionAPI) GetTotalCommentsByPostID ¶
func (InteractionAPI) PaginateAdmiresByCommentID ¶
func (InteractionAPI) PaginateAdmiresByFeedEventID ¶
func (InteractionAPI) PaginateAdmiresByPostID ¶
func (InteractionAPI) PaginateAdmiresByTokenID ¶
func (InteractionAPI) PaginateCommentsByFeedEventID ¶
func (InteractionAPI) PaginateCommentsByPostID ¶
func (InteractionAPI) PaginateInteractionsByFeedEventID ¶
func (InteractionAPI) PaginateInteractionsByPostID ¶
func (InteractionAPI) PaginateRepliesByCommentID ¶
func (InteractionAPI) RemoveAdmire ¶
func (InteractionAPI) RemoveComment ¶
func (InteractionAPI) ReportPost ¶
func (api InteractionAPI) ReportPost(ctx context.Context, postID persist.DBID, reason persist.ReportReason) error
type InteractionKey ¶
type MerchAPI ¶
type MerchAPI struct {
// contains filtered or unexported fields
}
func (MerchAPI) GetMerchTokenByTokenID ¶
func (api MerchAPI) GetMerchTokenByTokenID(ctx context.Context, tokenID persist.HexTokenID) (*model.MerchToken, error)
func (MerchAPI) GetMerchTokens ¶
func (MerchAPI) RedeemMerchItems ¶
func (api MerchAPI) RedeemMerchItems(ctx context.Context, tokenIDs []persist.HexTokenID, address persist.ChainAddress, sig string, walletType persist.WalletType) ([]*model.MerchToken, error)
type MintAPI ¶
type MintAPI struct {
// contains filtered or unexported fields
}
func (*MintAPI) ClaimHighlightMint ¶
func (*MintAPI) GetHighlightMintClaimByID ¶
type MiscAPI ¶
type MiscAPI struct {
// contains filtered or unexported fields
}
func (MiscAPI) GetGalleryOfTheWeekWinners ¶
func (MiscAPI) GetGeneralAllowlist ¶
type NotificationsAPI ¶
type NotificationsAPI struct {
// contains filtered or unexported fields
}
func (NotificationsAPI) ClearUserNotifications ¶
func (api NotificationsAPI) ClearUserNotifications(ctx context.Context) ([]db.Notification, error)
func (NotificationsAPI) GetByID ¶
func (api NotificationsAPI) GetByID(ctx context.Context, id persist.DBID) (db.Notification, error)
func (NotificationsAPI) GetViewerNotifications ¶
type PublicAPI ¶
type PublicAPI struct { APQ *apq.APQCache Auth *AuthAPI Collection *CollectionAPI Gallery *GalleryAPI User *UserAPI Token *TokenAPI Contract *ContractAPI Community *CommunityAPI Wallet *WalletAPI Misc *MiscAPI Feed *FeedAPI Notifications *NotificationsAPI Interaction *InteractionAPI Admin *admin.AdminAPI Merch *MerchAPI Social *SocialAPI Card *CardAPI Search *SearchAPI Mint *MintAPI // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, disableDataloaderCaching bool, repos *postgres.Repositories, queries *db.Queries, httpClient *http.Client, ethClient *ethclient.Client, ipfsClient *shell.Shell, arweaveClient *goar.Client, storageClient *storage.Client, taskClient *task.Client, throttler *throttle.Locker, secrets *secretmanager.Client, apq *apq.APQCache, feedCache, socialCache, authRefreshCache, tokenManageCache, oneTimeLoginCache *redis.Cache, magicClient *magicclient.API, neynar *farcaster.NeynarAPI, mintLimiter *limiters.KeyRateLimiter) *PublicAPI
func NewWithMultichainProvider ¶
func NewWithMultichainProvider(ctx context.Context, disableDataloaderCaching bool, repos *postgres.Repositories, queries *db.Queries, httpClient *http.Client, ethClient *ethclient.Client, ipfsClient *shell.Shell, arweaveClient *goar.Client, storageClient *storage.Client, taskClient *task.Client, throttler *throttle.Locker, secrets *secretmanager.Client, apq *apq.APQCache, feedCache, socialCache, authRefreshCache, tokenManageCache, oneTimeLoginCache *redis.Cache, magicClient *magicclient.API, neynar *farcaster.NeynarAPI, mintLimiter *limiters.KeyRateLimiter, multichainProvider *multichain.Provider) *PublicAPI
type SearchAPI ¶
type SearchAPI struct {
// contains filtered or unexported fields
}
func (SearchAPI) SearchCommunities ¶
func (api SearchAPI) SearchCommunities(ctx context.Context, query string, limit int, nameWeight float32, descriptionWeight float32, poapAddressWeight float32, providerNameWeight float32) ([]db.Community, error)
SearchCommunities searches for contracts with the given query, limit, and optional weights. Weights may be nil to accept default values. Weighting will probably be removed after we settle on defaults that feel correct!
func (SearchAPI) SearchGalleries ¶
func (api SearchAPI) SearchGalleries(ctx context.Context, query string, limit int, nameWeight float32, descriptionWeight float32) ([]db.Gallery, error)
SearchGalleries searches for galleries with the given query, limit, and optional weights. Weights may be nil to accept default values. Weighting will probably be removed after we settle on defaults that feel correct!
func (SearchAPI) SearchUsers ¶
func (api SearchAPI) SearchUsers(ctx context.Context, query string, limit int, usernameWeight float32, bioWeight float32) ([]db.User, error)
SearchUsers searches for users with the given query, limit, and optional weights. Weights may be nil to accept default values. Weighting will probably be removed after we settle on defaults that feel correct!
type SocialAPI ¶
type SocialAPI struct {
// contains filtered or unexported fields
}
func (*SocialAPI) DisconnectSocialAccount ¶
func (SocialAPI) GetConnections ¶
func (api SocialAPI) GetConnections(ctx context.Context, socialProvider persist.SocialProvider, onlyUnfollowing *bool) ([]model.SocialConnection, error)
func (SocialAPI) GetConnectionsPaginate ¶
func (SocialAPI) GetFarcasterFollowingByUserID ¶
func (SocialAPI) NewFarcasterAuthenticator ¶
func (s SocialAPI) NewFarcasterAuthenticator(userID persist.DBID, address persist.Address, withSigner bool) *socialauth.FarcasterAuthenticator
func (SocialAPI) NewLensAuthenticator ¶
func (s SocialAPI) NewLensAuthenticator(userID persist.DBID, address persist.Address, sig string) *socialauth.LensAuthenticator
func (SocialAPI) NewTwitterAuthenticator ¶
func (s SocialAPI) NewTwitterAuthenticator(userID persist.DBID, authCode string) *socialauth.TwitterAuthenticator
type TimeIDPaginator ¶
type TimeIDPaginator[Node any] struct { // QueryFunc returns paginated results for the given paging parameters QueryFunc func(params TimeIDPagingParams) ([]Node, error) // CursorFunc returns a time and DBID that will be encoded into a cursor string CursorFunc func(node Node) (time.Time, persist.DBID, error) // CountFunc returns the total number of items that can be paginated. May be nil, in which // case the resulting PageInfo will omit the total field. CountFunc func() (count int, err error) }
TimeIDPaginator paginates results using a cursor with a time.Time and a persist.DBID. By using the combination of a timestamp and a unique DBID for our ORDER BY clause, we can achieve fast keyset pagination results while avoiding edge cases when multiple rows have the same timestamp.
type TimeIDPagingParams ¶
type TimeIDPagingParams struct { Limit int32 CursorBeforeTime time.Time CursorBeforeID persist.DBID CursorAfterTime time.Time CursorAfterID persist.DBID PagingForward bool }
TimeIDPagingParams are the parameters used to paginate with a time+DBID cursor
type TokenAPI ¶
type TokenAPI struct {
// contains filtered or unexported fields
}
func (TokenAPI) GetCommunitiesByTokenDefinitionID ¶
func (TokenAPI) GetMediaByMediaID ¶
func (TokenAPI) GetMediaByTokenIdentifiers ¶
func (api TokenAPI) GetMediaByTokenIdentifiers(ctx context.Context, tokenIdentifiers persist.TokenIdentifiers) (db.TokenDefinition, db.TokenMedia, error)
func (TokenAPI) GetNewTokensByFeedEventID ¶
func (api TokenAPI) GetNewTokensByFeedEventID(ctx context.Context, eventID persist.DBID) ([]db.Token, error)
GetNewTokensByFeedEventID returns new tokens added to a collection from an event. Since its possible for tokens to be deleted, the return size may not be the same size of the tokens added, so the caller should handle the matching of arguments to response if used in that context.
func (TokenAPI) GetProcessingStateByTokenDefinitionID ¶
func (api TokenAPI) GetProcessingStateByTokenDefinitionID(ctx context.Context, id persist.DBID) (bool, error)
GetProcessingStateByTokenDefinitionID returns true if a token is queued for processing, or is currently being processed.
func (TokenAPI) GetTokenByEnsDomain ¶
func (TokenAPI) GetTokenById ¶
func (TokenAPI) GetTokenByIdIgnoreDisplayable ¶
func (api TokenAPI) GetTokenByIdIgnoreDisplayable(ctx context.Context, tokenID persist.DBID) (*db.Token, error)
GetTokenByIdIgnoreDisplayable returns a token by ID, ignoring the displayable flag.
func (TokenAPI) GetTokenDefinitionByID ¶
func (TokenAPI) GetTokensBookmarkedByUserId ¶
func (TokenAPI) GetTokensByCollectionId ¶
func (TokenAPI) GetTokensByContractIdPaginate ¶
func (TokenAPI) GetTokensByIDs ¶
func (TokenAPI) GetTokensByUserID ¶
func (api TokenAPI) GetTokensByUserID(ctx context.Context, userID persist.DBID, ownershipFilter []persist.TokenOwnershipType) ([]db.Token, error)
GetTokensByUserID returns all tokens owned by a user. ownershipFilter is optional and may be nil or empty, which will cause all tokens to be returned. If filter values are provided, only the tokens matching the filter will be returned.
func (TokenAPI) GetTokensByWalletID ¶
func (TokenAPI) RefreshCollection ¶
func (TokenAPI) RefreshToken ¶
func (TokenAPI) SetSpamPreference ¶
func (TokenAPI) SyncCreatedTokensAdmin ¶
func (TokenAPI) SyncCreatedTokensForExistingContract ¶
func (TokenAPI) SyncCreatedTokensForExistingContractAdmin ¶
func (TokenAPI) SyncCreatedTokensForNewContracts ¶
func (TokenAPI) SyncTokens ¶
func (TokenAPI) SyncTokensAdmin ¶
func (TokenAPI) UpdateTokenInfo ¶
type UserAPI ¶
type UserAPI struct {
// contains filtered or unexported fields
}
func (UserAPI) AddSocialAccountToUser ¶
func (api UserAPI) AddSocialAccountToUser(ctx context.Context, authenticator socialauth.Authenticator, display bool) error
func (UserAPI) AddWalletToUser ¶
func (api UserAPI) AddWalletToUser(ctx context.Context, chainAddress persist.ChainAddress, authenticator auth.Authenticator) error
func (UserAPI) CreatePushTokenForUser ¶
func (api UserAPI) CreatePushTokenForUser(ctx context.Context, pushToken string) (db.PushNotificationToken, error)
CreatePushTokenForUser adds a push token to a user, or returns the existing push token if it's already been added to this user. If the token can't be added because it belongs to another user, an error is returned.
func (UserAPI) CreateUser ¶
func (UserAPI) CreatedCommunities ¶
func (UserAPI) DeletePushTokenByPushToken ¶
DeletePushTokenByPushToken removes a push token from a user, or does nothing if the token doesn't exist. If the token can't be removed because it belongs to another user, an error is returned.
func (UserAPI) FollowAllOnboardingRecommendations ¶
func (UserAPI) FollowAllSocialConnections ¶
func (UserAPI) FollowUser ¶
func (UserAPI) GetCurrentUserEmailNotificationSettings ¶
func (UserAPI) GetDisplayedSocials ¶
func (UserAPI) GetFollowersByUserId ¶
func (UserAPI) GetFollowingByUserId ¶
func (UserAPI) GetLoggedInUserId ¶
func (UserAPI) GetMembershipByMembershipId ¶
func (UserAPI) GetMembershipTiers ¶
func (UserAPI) GetPotentialENSProfileImageByUserID ¶
func (api UserAPI) GetPotentialENSProfileImageByUserID(ctx context.Context, userID persist.DBID) (a EnsAvatar, err error)
GetPotentialENSProfileImageByUserID returns the an ENS profile image for a user based on their set of wallets
func (UserAPI) GetProfileImageByUserID ¶
func (UserAPI) GetSocials ¶
func (UserAPI) GetSuggestedUsers ¶
func (UserAPI) GetSuggestedUsersFarcaster ¶
func (UserAPI) GetUserByAddress ¶
func (UserAPI) GetUserById ¶
func (UserAPI) GetUserByUsername ¶
func (UserAPI) GetUserByVerifiedEmailAddress ¶
func (UserAPI) GetUserExperiences ¶
func (*UserAPI) GetUserRolesByUserID ¶
func (UserAPI) GetUserWithPII ¶
GetUserWithPII returns the current user and their associated personally identifiable information
func (UserAPI) GetUsersByAddresses ¶
func (UserAPI) GetUsersByIDs ¶
func (UserAPI) GetUsersWithTrait ¶
func (UserAPI) IsMemberOfCommunity ¶
func (*UserAPI) OptInForRoles ¶
func (*UserAPI) OptOutForRoles ¶
func (UserAPI) PaginateUsersWithRole ¶
func (UserAPI) RemoveProfileImage ¶
func (UserAPI) RemoveWalletsFromUser ¶
func (UserAPI) ResendEmailVerification ¶
func (UserAPI) SetPersona ¶
func (UserAPI) SetProfileImage ¶
func (api UserAPI) SetProfileImage(ctx context.Context, tokenID *persist.DBID, walletAddress *persist.ChainAddress) error
SetProfileImage sets the profile image for the current user.
func (UserAPI) SharedCommunities ¶
func (UserAPI) SharedFollowers ¶
func (UserAPI) UnblockUser ¶
func (UserAPI) UnfollowUser ¶
func (UserAPI) UpdateFeaturedGallery ¶
func (UserAPI) UpdateUserEmailNotificationSettings ¶
func (UserAPI) UpdateUserEmailWithAuthenticator ¶
func (UserAPI) UpdateUserEmailWithManualVerification ¶
func (UserAPI) UpdateUserExperience ¶
func (UserAPI) UpdateUserInfo ¶
func (UserAPI) UpdateUserNotificationSettings ¶
func (UserAPI) UpdateUserPrimaryWallet ¶
func (UserAPI) UpdateUserSocialDisplayed ¶
type WalletAPI ¶
type WalletAPI struct {
// contains filtered or unexported fields
}