notification

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mastodon

type Mastodon struct {
	URL         string
	AccessToken string
}

func NewMastodon

func NewMastodon(u string, accessToken string) *Mastodon

func (*Mastodon) Notify

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

type Notifier

type Notifier interface {
	Notify(ctx context.Context, message string) error
}

type Notifiers

type Notifiers []Notifier

func (Notifiers) Notify

func (ns Notifiers) Notify(ctx context.Context, message string) error

type Twitter

type Twitter struct {
	*orig.Client
}

func NewTwitter

func NewTwitter(consumerKey, consumerSecret, accessToken, accessSecret string) *Twitter

func (*Twitter) Notify

func (t *Twitter) Notify(ctx context.Context, message string) error

Jump to

Keyboard shortcuts

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