peer

package
Version: v0.0.0-...-9af0977 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args interface{}

type CachePool

type CachePool interface {
	Listen() error
	Port() string
	SetContext(func(r *http.Request) groupcache.Context)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

type DebugCachePool

type DebugCachePool struct {
	*groupcache.HTTPPool
}

func DebugPool

func DebugPool() *DebugCachePool

func (*DebugCachePool) Listen

func (p *DebugCachePool) Listen() error

func (*DebugCachePool) Port

func (p *DebugCachePool) Port() string

func (*DebugCachePool) SetContext

func (p *DebugCachePool) SetContext(f func(r *http.Request) groupcache.Context)

type EC2CachePool

type EC2CachePool struct {
	*groupcache.HTTPPool
	*ec2.EC2
}

func Pool

func Pool(ec2conn *ec2.EC2) *EC2CachePool

func (*EC2CachePool) Listen

func (p *EC2CachePool) Listen() error

func (*EC2CachePool) Port

func (p *EC2CachePool) Port() string

func (*EC2CachePool) RefreshPeers

func (p *EC2CachePool) RefreshPeers(a *Args, r *int) error

func (*EC2CachePool) SetContext

func (p *EC2CachePool) SetContext(f func(r *http.Request) groupcache.Context)

Source Files

Jump to

Keyboard shortcuts

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