cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotInterface

type BotInterface interface {
	// Start starts bot
	Start() error

	// Shutdown gracefully shutdowns bot
	Shutdown() error
}

type FeedInterface

type FeedInterface interface {
	// Init inits feed (create files and directories)
	Init() error

	// Add adds new item into feed
	Add(author, title, description, link string, created time.Time) error

	// Write writes RSS feed into w
	Write(w io.Writer) error
}

type ServerInterface

type ServerInterface interface {
	// Start starts server. It doesn't finish until server is shutdowned
	Start() error

	// Shutdown shutdowns server. It unlocks Start()
	Shutdown() error
}

Jump to

Keyboard shortcuts

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