notification

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMastodonRepository

func NewMastodonRepository(l log.Logger, c *mastodon.Client) *mastodonRepository

NewMastodonRepository initializes a new Mastodon notifier repository

func NewTwitterRepository

func NewTwitterRepository(l log.Logger, c *twitter.Client, tu *twitter.User) *twitterRepository

NewTwitterRepository initializes a new Twitter notifier repository

Types

type Repository

type Repository interface {
	Post(ctx context.Context, text string, author string, url string) error
}

Repository is an interface for a notifier repository

Jump to

Keyboard shortcuts

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