Documentation ¶
Index ¶
Constants ¶
View Source
const VERSION = "0.2.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubStream ¶
type GithubStream struct { Stream chan []github.RepositoryCommit Client *github.Client Ticker *time.Ticker Owner string Repo string Branch string Token string // How often the Github repository should be queried. Frequency time.Duration // From when should the commits be fetched; a `Since` of 8 hours // indicates that on every query, get all commits from 8 hours ago // up to the current time. Since time.Duration }
func NewGithubStream ¶
func (*GithubStream) Start ¶
func (ghs *GithubStream) Start() chan []github.RepositoryCommit
func (*GithubStream) Stop ¶
func (ghs *GithubStream) Stop()
Click to show internal directories.
Click to hide internal directories.