Documentation
¶
Index ¶
- type Bio
- type Pfp
- type Profile
- type User
- type UserResponse
- type UserService
- func (u *UserService) GetCustodyAddressByFid(fid uint64) (string, error)
- func (u *UserService) GetCustodyAddressByUsername(username string) (string, error)
- func (u *UserService) GetRecentUsers(limit int, cursor string) ([]User, string, error)
- func (u *UserService) GetUserByAddress(address string) (*User, error)
- func (u *UserService) GetUserByFid(fid uint64) (*User, error)
- func (u *UserService) GetUserByUsername(username string) (*User, error)
- func (u *UserService) Me() (*User, error)
- type ViewerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Fid int `json:"fid"` Username string `json:"username"` DisplayName string `json:"displayName"` Pfp Pfp `json:"pfp"` Profile Profile `json:"profile"` FollowerCount int `json:"followerCount"` FollowingCount int `json:"followingCount"` ReferrerUsername string `json:"referrerUsername"` ViewerContext *ViewerContext `json:"viewerContext"` }
type UserResponse ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(account *account.AccountService, registry *registry.RegistryService) *UserService
func (*UserService) GetCustodyAddressByFid ¶
func (u *UserService) GetCustodyAddressByFid(fid uint64) (string, error)
func (*UserService) GetCustodyAddressByUsername ¶
func (u *UserService) GetCustodyAddressByUsername(username string) (string, error)
func (*UserService) GetRecentUsers ¶
func (*UserService) GetUserByAddress ¶
func (u *UserService) GetUserByAddress(address string) (*User, error)
func (*UserService) GetUserByFid ¶
func (u *UserService) GetUserByFid(fid uint64) (*User, error)
func (*UserService) GetUserByUsername ¶
func (u *UserService) GetUserByUsername(username string) (*User, error)
func (*UserService) Me ¶
func (u *UserService) Me() (*User, error)
type ViewerContext ¶
Click to show internal directories.
Click to hide internal directories.