client

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnonymousClient

func NewAnonymousClient(serverName string) *mastodon.Client

NewAnonymousClient returns a client capable of only returning data using public endpoints. Any authenticated calls through this client will fail.

func RegisterNewClient

func RegisterNewClient(serverName string) (*mastodon.Client, error)

RegisterNewClient registers a new authenticated client by starting a local auth server, opening a browser and capturing client id & secret for this user.

Types

type TagTimeline

type TagTimeline func(tag string) ([]*mastodon.Status, error)

func FileFeed

func FileFeed(filename string) TagTimeline

FileFeed returns a TagTimeline using the provided filename source

func ServerFeed

func ServerFeed(ctx context.Context, client *mastodon.Client) TagTimeline

ServerFeed returns a TagTimeline using the provided client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL