mastodon

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DrawStart    = "\u250f"
	DrawContinue = "\u2503"
	DrawEnd      = "\u2503"
)

https://www.w3schools.com/charsets/ref_utf_box.asp

View Source
const (
	StreamFederated = "federated"
	StreamLocal     = "local"
	StreamTimeline  = "timeline"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Stream       string `json:"stream"`
	Channel      string `json:"channel"`
	Password     string `json:"password"`
	Server       string `json:"server"`
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	AccessToken  string `json:"access_token"`
}

type Mastodon

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

func NewMastodon

func NewMastodon(client *irc.Client, config Config) *Mastodon

func (*Mastodon) Run

func (m *Mastodon) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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