Versions in this module Expand all Collapse all v1 v1.2.0 Sep 26, 2018 Changes in this version + func ExponentialDuration(attempt int) time.Duration + func NewVisitor(w Writer, metrics metrics, log *log.Logger) logcache.Visitor + type DialFunc func(addr string) (net.Conn, error) + type HTTPSWriter struct + func (*HTTPSWriter) Close() error + func (w *HTTPSWriter) Write(env *loggregator_v2.Envelope) error + type LogClient interface + EmitLog func(message string, opts ...loggregator.EmitLogOption) + type NetworkConfig struct + DialTimeout time.Duration + Keepalive time.Duration + SkipCertVerify bool + WriteTimeout time.Duration + type RetryDuration func(attempt int) time.Duration + type RetryWriter struct + func (r *RetryWriter) Close() error + func (r *RetryWriter) Write(e *loggregator_v2.Envelope) error + type TCPWriter struct + func (w *TCPWriter) Close() error + func (w *TCPWriter) Write(env *loggregator_v2.Envelope) error + type TLSWriter struct + type URLBinding struct + Context context.Context + Hostname string + URL *url.URL + func (u *URLBinding) Scheme() string + type WriteCloser interface + func NewHTTPSWriter(binding *URLBinding, netConf NetworkConfig) WriteCloser + func NewTCPWriter(binding *URLBinding, netConf NetworkConfig) WriteCloser + func NewTLSWriter(binding *URLBinding, netConf NetworkConfig) WriteCloser + func NewWriter(sourceHost string, url *url.URL, netConf NetworkConfig, log *log.Logger) WriteCloser + type Writer interface + Write func(*loggregator_v2.Envelope) error + type WriterConstructor func(binding *URLBinding, netConf NetworkConfig) WriteCloser + func RetryWrapper(wc WriterConstructor, r RetryDuration, maxRetries int, logClient LogClient, ...) WriterConstructor