monitor

package
v92.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 11 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(context.Context) (*github.RateLimits, *github.Response, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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