package
6.1.0+incompatible
Repository: https://github.com/peterbourgon/fastly-exporter.git
Documentation: pkg.go.dev

# Functions

NewCache returns an empty cache of service metadata.
WithExplicitServiceIDs restricts the cache to fetch metadata only for the provided service IDs.
WithLogger sets the logger used by the cache during refresh.
WithNameFilter restricts the cache to fetch metadata only for the services whose names pass the provided filter.
WithShard restricts the cache to fetch metadata only for those services whose IDs, when hashed and taken modulo m, equal (n-1).

# Structs

Cache polls api.fastly.com/service to keep metadata about one or more service IDs up-to-date.
Service metadata associated with a single service.

# Interfaces

HTTPClient is a consumer contract for the cache.

# Type aliases

CacheOption provides some additional behavior to a cache.