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.

        Source Files

        Directories

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