Versions in this module Expand all Collapse all v0 v0.0.1 Nov 27, 2024 Changes in this version + const ServerBskySocial + var ErrLoginUnauthorized = errors.New("unauthorized") + var ErrMasterCredentials = errors.New("master credentials used") + var ErrSessionExpired = errors.New("session expired") + type Client struct + func Dial(ctx context.Context, server string) (*Client, error) + func DialWithClient(ctx context.Context, server string, client *http.Client) (*Client, error) + func (c *Client) Close() error + func (c *Client) CustomCall(callback func(client *xrpc.Client) error) error + func (c *Client) FetchProfile(ctx context.Context, id string) (*Profile, error) + func (c *Client) Login(ctx context.Context, handle string, appkey string) error + type Profile struct + Avatar image.Image + AvatarURL string + Banner image.Image + BannerURL string + Bio string + DID string + FolloweeCount uint + Followees []*User + FollowerCount uint + Followers []*User + Handle string + Name string + PostCount uint + func (p *Profile) ResolveAvatar(ctx context.Context) error + func (p *Profile) ResolveAvatarWithLimit(ctx context.Context, bytes uint64) error + func (p *Profile) ResolveBanner(ctx context.Context) error + func (p *Profile) ResolveBannerWithLimit(ctx context.Context, bytes uint64) error + func (p *Profile) ResolveFollowees(ctx context.Context) error + func (p *Profile) ResolveFollowers(ctx context.Context) error + func (p *Profile) StreamFollowees(ctx context.Context) (<-chan *User, <-chan error) + func (p *Profile) StreamFollowers(ctx context.Context) (<-chan *User, <-chan error) + func (p *Profile) String() string + type User struct + Avatar image.Image + AvatarURL string + Bio string + DID string + Handle string + Name string + func (u *User) ResolveAvatar(ctx context.Context) error + func (u *User) ResolveAvatarWithLimit(ctx context.Context, bytes uint64) error + func (u *User) String() string