package transport
import "github.com/coreos/etcd/pkg/transport"
Index ¶
- func NewListener(addr string, scheme string, info TLSInfo) (net.Listener, error)
- func NewTimeoutListener(addr string, scheme string, info TLSInfo, rdtimeoutd, wtimeoutd time.Duration) (net.Listener, error)
- func NewTimeoutTransport(info TLSInfo, rdtimeoutd, wtimeoutd time.Duration) (*http.Transport, error)
- func NewTransport(info TLSInfo) (*http.Transport, error)
- type TLSInfo
Functions ¶
func NewListener ¶
func NewTimeoutListener ¶
func NewTimeoutListener(addr string, scheme string, info TLSInfo, rdtimeoutd, wtimeoutd time.Duration) (net.Listener, error)
NewTimeoutListener returns a listener that listens on the given address. If read/write on the accepted connection blocks longer than its time limit, it will return timeout error.
func NewTimeoutTransport ¶
func NewTimeoutTransport(info TLSInfo, rdtimeoutd, wtimeoutd time.Duration) (*http.Transport, error)
NewTimeoutTransport returns a transport created using the given TLS info. If read/write on the created connection blocks longer than its time limit, it will return timeout error.
func NewTransport ¶
Types ¶
type TLSInfo ¶
type TLSInfo struct { CertFile string KeyFile string CAFile string // contains filtered or unexported fields }
func (TLSInfo) ClientConfig ¶
ClientConfig generates a tls.Config object for use by an HTTP client
func (TLSInfo) Empty ¶
func (TLSInfo) ServerConfig ¶
ServerConfig generates a tls.Config object for use by an HTTP server
func (TLSInfo) String ¶
Source Files ¶
listener.go timeout_conn.go timeout_dialer.go timeout_listener.go timeout_transport.go
- Version
- v0.5.0-alpha.4
- Published
- Nov 26, 2014
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 2 hours ago –
Tools for package owners.