leasehttp

package
v3.0.16+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Overview

Package leasehttp serves lease renewals made through HTTP requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(l lease.Lessor) http.Handler

NewHandler returns an http Handler for lease renewals

func RenewHTTP

func RenewHTTP(ctx context.Context, id lease.LeaseID, url string, rt http.RoundTripper) (int64, error)

RenewHTTP renews a lease at a given primary server. TODO: Batch request in future?

Types

This section is empty.

Jump to

Keyboard shortcuts

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