Documentation ¶
Index ¶
- type Client
- type Feed
- type FeedConsumer
- func (fc *FeedConsumer) AddFeed(feedURL, did string) (*Feed, error)
- func (fc *FeedConsumer) AddUser(ctx context.Context, handle, appPassword string) (*User, error)
- func (fc *FeedConsumer) GetFeed(did string) (*Feed, error)
- func (fc *FeedConsumer) GetFeeds() ([]*Feed, error)
- func (fc *FeedConsumer) GetUser(did string) (*User, error)
- func (fc *FeedConsumer) MarshalPost(ctx context.Context, client *Client, feed *gofeed.Feed, item *gofeed.Item) (*PostArgs, error)
- func (fc *FeedConsumer) NewBskyClient(ctx context.Context, rawDid, appPassword string) (*Client, error)
- func (fc *FeedConsumer) RemoveFeed(did string) error
- func (fc *FeedConsumer) ResumeClient(ctx context.Context, rawDid, accessJwt, refreshJwt string) (*Client, error)
- func (fc *FeedConsumer) SaveFeed(feed *Feed) error
- func (fc *FeedConsumer) Shutdown()
- func (fc *FeedConsumer) Start()
- func (fc *FeedConsumer) UpdateFeeds() error
- type PostArgs
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a Bluesky API Client
func (*Client) CreatePost ¶
CreatePost creates a new post
func (*Client) RefreshAuth ¶
RefreshAuth refreshes the auth token for the client
type Feed ¶
type FeedConsumer ¶
func NewFeedConsumer ¶
func NewFeedConsumer(logger *slog.Logger, dbPath string) (*FeedConsumer, error)
func (*FeedConsumer) GetFeeds ¶
func (fc *FeedConsumer) GetFeeds() ([]*Feed, error)
func (*FeedConsumer) MarshalPost ¶
func (*FeedConsumer) NewBskyClient ¶
func (*FeedConsumer) RemoveFeed ¶
func (fc *FeedConsumer) RemoveFeed(did string) error
func (*FeedConsumer) ResumeClient ¶
func (*FeedConsumer) SaveFeed ¶
func (fc *FeedConsumer) SaveFeed(feed *Feed) error
func (*FeedConsumer) Shutdown ¶
func (fc *FeedConsumer) Shutdown()
func (*FeedConsumer) Start ¶
func (fc *FeedConsumer) Start()
func (*FeedConsumer) UpdateFeeds ¶
func (fc *FeedConsumer) UpdateFeeds() error
Click to show internal directories.
Click to hide internal directories.