mastodon

package
v0.0.0-...-a9a459b Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MastodonServer      string
	MastodonID          string
	MastodonSecret      string
	MastodonAccessToken string
	MastodonEmail       string
	MastodonPassword    string
}

type Mastodon

type Mastodon struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) (*Mastodon, error)

func (*Mastodon) SendMessage

func (m *Mastodon) SendMessage(ctx context.Context, message string) error

func (*Mastodon) SendMessageWithoutDuplicate

func (m *Mastodon) SendMessageWithoutDuplicate(ctx context.Context, message string) error

func (*Mastodon) UpdateProfile

func (m *Mastodon) UpdateProfile(ctx context.Context, info *godville.Info) error

Jump to

Keyboard shortcuts

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