issuehandler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SkewWorkaround = -5 * time.Second

Avoid client tar warn about future timestamp.

Variables

This section is empty.

Functions

func StatusCodeFromError

func StatusCodeFromError(e interface{}) int

Types

type ErrorWithStatusCode

type ErrorWithStatusCode struct {
	StatusCode int
	Err        error
}

func (ErrorWithStatusCode) Error

func (e ErrorWithStatusCode) Error() string

func (ErrorWithStatusCode) GetStatusCode

func (e ErrorWithStatusCode) GetStatusCode() int

func (ErrorWithStatusCode) Unwrap

func (e ErrorWithStatusCode) Unwrap() error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(env *cli.Environment, count int) (*Handler, error)

func (*Handler) CurlString

func (h *Handler) CurlString(listenAddr, pubkeyhash string) (string, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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