cache

package
v0.0.0-...-cf3f09f Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CacheItemTTL = 15 * time.Minute
View Source
const CacheUpdateInterval = 10 * time.Minute

Variables

This section is empty.

Functions

func NewCacheLoader

func NewCacheLoader(logger lager.Logger, githubURL string, orgs []string, locationCache *LocationCache, repoService RepositoriesService, clock clock.Clock) ifrit.Runner

Types

type LocationCache

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

func NewLocationCache

func NewLocationCache(logger lager.Logger, clock clock.Clock) *LocationCache

func (*LocationCache) Add

func (l *LocationCache) Add(repoName, location string)

func (*LocationCache) Lookup

func (l *LocationCache) Lookup(repoName string) (string, bool)

func (*LocationCache) Swap

func (l *LocationCache) Swap(newLocationCache *LocationCache)

type RepositoriesService

type RepositoriesService interface {
	ListByOrg(org string, opt *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
}

Directories

Path Synopsis
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