relaystation

package
v0.0.0-...-f3b6111 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Functions

func Root

func Root()

Types

type AccountMap

type AccountMap struct {
	ID       string
	Username string
}

type Accounts

type Accounts []AccountMap

type Attachments

type Attachments []*mastodon.Attachment

type Mastodon

type Mastodon struct {
	Client *mastodon.Client
}

func (Mastodon) ComposeToot

func (m Mastodon) ComposeToot(t *streamtypes.SearchStreamOutput, accs Accounts, tw Twitter) *mastodon.Toot

this is a bit of a monster because we need both mastodon and twitter clients here (to fetch tw media and upload mastodon media) not sure how to solve this best, so far but will work it out in the future

type MastodonConfig

type MastodonConfig struct {
	Email        string
	Password     string
	Server       string
	ClientID     string
	ClientSecret string
}

type Rules

type Rules []string

type Twitter

type Twitter struct {
	Client *gotwi.Client
}

Jump to

Keyboard shortcuts

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