backend

package
v0.0.0-...-581f9c8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package backend provides integrations for 3rd party resources.

TODO(CyS) Add https://open.dgraph.io/post/badger/

Index

Constants

This section is empty.

Variables

View Source
var DefaultHTTPTransport = &http.Transport{
	Proxy: http.ProxyFromEnvironment,
	DialContext: (&net.Dialer{
		Timeout:   esitag.DefaultTimeOut,
		KeepAlive: 30 * time.Second,
		DualStack: true,
	}).DialContext,
	MaxIdleConns:          100,
	IdleConnTimeout:       90 * time.Second,
	TLSHandshakeTimeout:   10 * time.Second,
	ExpectContinueTimeout: 1 * time.Second,
}

DefaultHTTPTransport our own transport for all Tag tag resources instead of relying on net/http.DefaultTransport. This transport gets also mocked for tests. Only used in init(), see above.

Functions

func NewFetchHTTP

func NewFetchHTTP(tr http.RoundTripper) esitag.ResourceHandler

NewFetchHTTP creates a new HTTP/S backend fetcher which lives the whole application running time. Thread safe.

Types

This section is empty.

Directories

Path Synopsis
Package esigrpc is a generated protocol buffer package.
Package esigrpc is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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