githubproxy

package
v0.0.0-...-6eba610 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2013 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxAge

type MaxAge struct {
	User         time.Duration
	Repository   time.Duration
	Repositories time.Duration
	Activity     time.Duration
}

MaxAge represents custom cache max-ages for GitHub API resources. It implements the apiproxy.Validator interface and is intended for use with RevalidationTransport. TODO(sqs): add fields for all GitHub API resources.

func (*MaxAge) Validator

func (a *MaxAge) Validator() apiproxy.Validator

Validator returns an apiproxy.Validator that implements the MaxAge cache aging logic.

Jump to

Keyboard shortcuts

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