Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers map[string]providers.Provider
Providers contains a list of all providers registered with the application
Functions ¶
func AddMiddleware ¶
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller holds the state for the poller, which polls the providers for new metas and comments
func NewPoller ¶
func NewPoller() *Poller
NewPoller sets up the state and returns an instance of a Poller
func (*Poller) PollAllProviders ¶
PollAllProviders calls PollProvider on each of the providers in the Providers map. It returns a slice of pointers to Meta objects, as well as a slice of errors. This is so that if one provider returns an error, the entire call is not invalidated.
Click to show internal directories.
Click to hide internal directories.