Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + const AuthorizationHeader + const VerificationHeader + type Charger interface + Charge func(from, to common.Address, nonce uint64, amount *big.Int, signature []byte) (common.Hash, error) + type Proxy struct + func New(id int, extPort, intPort int, kind ProxyType, verifier Verifier, vault *Vault) *Proxy + func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (p *Proxy) Start() error + type ProxyType int + const CallProxy + const DataProxy + type Vault struct + func NewVault(charger Charger) *Vault + func (v *Vault) AutoCharge(interval time.Duration) + func (v *Vault) Charge() + func (v *Vault) Fetch(provider, consumer common.Address) *authorization + func (v *Vault) Store(auth *authorization) + type Verifier interface + Exists func(from, to common.Address) bool + Nonce func(from, to common.Address) *big.Int + Price func(from, to common.Address) *big.Int + Verify func(from, to common.Address, nonce uint64, amount *big.Int, signature []byte) (bool, bool)