provider

package
v0.0.0-...-ef075dc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodBoy

type GoodBoy interface {
	Sniff(p Provider) ([]slack.Message, error)
	Sleep()
}

type Provider

type Provider interface {
	// A list of messages sorted by date descending
	Latest() ([]slack.Message, error)
	// The provider specific cache
	Cache() cache.Cache
}

type WatchDog

type WatchDog struct {
	// contains filtered or unexported fields
}

func NewWatchDog

func NewWatchDog(baseWaitTime uint8) WatchDog

func (WatchDog) Sleep

func (wd WatchDog) Sleep()

func (WatchDog) Sniff

func (wd WatchDog) Sniff(p Provider) ([]slack.Message, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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