Documentation ¶
Index ¶
- Variables
- type EIP712Domain
- type NeynarAPI
- func (n *NeynarAPI) CreateSignerForUser(ctx context.Context, fid NeynarID) (NeynarSigner, error)
- func (n *NeynarAPI) FarcasterIDByUserID(ctx context.Context, userID persist.DBID) (NeynarID, error)
- func (n *NeynarAPI) FollowersByUserID(ctx context.Context, fid NeynarID) ([]NeynarUser, error)
- func (n *NeynarAPI) FollowingByUserID(ctx context.Context, fid string) ([]NeynarUser, error)
- func (n *NeynarAPI) GetSignerByUUID(ctx context.Context, uuid string) (NeynarSigner, error)
- func (n *NeynarAPI) UserByAddress(ctx context.Context, address persist.Address) (NeynarUser, error)
- func (n *NeynarAPI) UsersByAddresses(ctx context.Context, addresses []persist.Address, custodyAddressesOnly bool) (map[persist.Address][]NeynarUser, error)
- type NeynarFollowsReponse
- type NeynarID
- type NeynarSigner
- type NeynarUser
- type NeynarUserByVerificationResponse
- type SignedKeyRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotOnFarcaster = errors.New("user is not on farcaster")
Functions ¶
This section is empty.
Types ¶
type EIP712Domain ¶
type NeynarAPI ¶
type NeynarAPI struct {
// contains filtered or unexported fields
}
func NewNeynarAPI ¶
func (*NeynarAPI) CreateSignerForUser ¶
func (*NeynarAPI) FarcasterIDByUserID ¶
FarcasterIDByUserID returns the FID of a user via the user's Gallery ID. ErrUserNotOnFarcaster is returned if the user is not on Farcaster based off their connected wallets.
func (*NeynarAPI) FollowersByUserID ¶
func (*NeynarAPI) FollowingByUserID ¶
func (*NeynarAPI) GetSignerByUUID ¶
func (*NeynarAPI) UserByAddress ¶
type NeynarFollowsReponse ¶
type NeynarFollowsReponse struct { Result struct { Users []NeynarUser `json:"users"` Next struct { Cursor string `json:"cursor"` } `json:"next"` } `json:"result"` }
type NeynarID ¶
type NeynarID string
func (NeynarID) MarshalJSON ¶
func (*NeynarID) UnmarshalJSON ¶
could be a string or a number
type NeynarSigner ¶
type NeynarUser ¶
type NeynarUser struct { Fid NeynarID `json:"fid"` Username string `json:"username"` DisplayName string `json:"displayName"` Pfp struct { URL string `json:"url"` } `json:"pfp"` Profile struct { Bio struct { Text string `json:"text"` } `json:"bio"` } `json:"profile"` VerifiedAddresses struct { EthAddresses []persist.Address `json:"eth_addresses"` SolAddresses []persist.Address `json:"sol_addresses"` } `json:"verified_addresses"` }
type NeynarUserByVerificationResponse ¶
type NeynarUserByVerificationResponse struct { Result *struct { User NeynarUser `json:"user"` } `json:"result"` }
Click to show internal directories.
Click to hide internal directories.