telegraph

package
v0.0.0-...-f2b64ca Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccountNumber int
	ShortName     string
	AuthorName    string
	AuthorURL     string

	AccessToken []string
	Logger      log.Logger
}

type Item

type Item struct {
	ResultChan chan<- string
	Feed       *models.Feed
}

type Telegraph

type Telegraph interface {

	// Publish is a blocking function that insert the provided feed into queue and wait for process
	Publish(item *models.Feed) (string, error)

	// Start is used to start a instance
	// telegraph do not needs to stop, just close the input channel
	Start()
}

func NewTelegraph

func NewTelegraph(c *Config) (Telegraph, error)

Jump to

Keyboard shortcuts

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