publisher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Name() string
	Publish(content string) error
}

Interface is a common interface for publishers like Misskey.

func NewTokenPublisherByName

func NewTokenPublisherByName(name, baseURL, token string) Interface

NewTokenPublisherByName creates a new Publisher with token auth based on its name.

type Misskey

type Misskey struct {
	Client misskey.ClientInterface
}

Misskey publisher.

func NewMisskey

func NewMisskey(baseURL, token string) *Misskey

NewMisskey creates a new Misskey publisher.

func (*Misskey) Name

func (m *Misskey) Name() string

Name returns with the name of the publisher.

func (*Misskey) Publish

func (m *Misskey) Publish(content string) error

Publish simply publishes a Note.

Jump to

Keyboard shortcuts

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