monitor

package
v42.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GITHUB_SERVICE_URL = "https://status.github.com/api/status.json"

Variables

This section is empty.

Functions

func NewGithubMonitor

func NewGithubMonitor(
	logger lager.Logger,
	ghService GithubService,
	clock clock.Clock,
	interval time.Duration,
	emitter metrics.Emitter,
) *githubMonitor

func NewMonitor

func NewMonitor(
	logger lager.Logger,
	ghClient RateClient,
	emitter metrics.Emitter,
	clock clock.Clock,
	interval time.Duration,
) ifrit.Runner

Types

type GithubService

type GithubService interface {
	Status(string) (int, error)
}

func NewGithubService

func NewGithubService(
	logger lager.Logger,
) GithubService

type RateClient

type RateClient interface {
	RateLimits() (*github.RateLimits, *github.Response, error)
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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