http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

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

Options holds http configuration properties for communicating with InfluxDB server

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions returns Options object with default values

func (*Options) HttpRequestTimeout

func (o *Options) HttpRequestTimeout() uint

HttpRequestTimeout returns HTTP request timeout

func (*Options) SetHttpRequestTimeout

func (o *Options) SetHttpRequestTimeout(httpRequestTimeout uint) *Options

SetHttpRequestTimeout sets HTTP request timeout in sec

func (*Options) SetTlsConfig

func (o *Options) SetTlsConfig(tlsConfig *tls.Config) *Options

SetTlsConfig sets TLS configuration for secure connection

func (*Options) TlsConfig

func (o *Options) TlsConfig() *tls.Config

TlsConfig returns TlsConfig

Jump to

Keyboard shortcuts

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