Versions in this module Expand all Collapse all v22 v22.4.2 Apr 28, 2022 Changes in this version + const HttpConnection + const NoConnection + const TlsOff + const TlsStrict + const UnixDomainSocketConnection + var DefaultConfig = Config + var NoConnectionConfig = Config + func CreateClient(cfg Config) (*engine.Client, error) + func IsSocketConfigured(cfg Config) bool + type Config struct + ConnectionType string + DialTimeout uint + HttpIdleConnTimeout uint + HttpReadBufferSize int + HttpUrl string + HttpWriteBufferSize int + Socket string + Timeout uint + TlsClientCert string + TlsClientKey string + TlsInsecureSkipVerify bool + TlsMode string + TlsRootCA string + WorkDir string + func FetchConfig(path string) (Config, error) + func FetchConfigOrIgnore(path string) (Config, error) + func LoadConfigFile(path string) (Config, error) + func (cfg *Config) SetDialTimeout(dialTimeout uint) + func (cfg *Config) SetHttpIdleConnTimeout(httpIdleConnTimeout uint) + func (cfg *Config) SetHttpReadBufferSize(httpReadBufferSize int) + func (cfg *Config) SetHttpUrl(httpUrl string) + func (cfg *Config) SetHttpWriteBufferSize(httpWriteBufferSize int) + func (cfg *Config) SetSocket(socketPath string) + func (cfg *Config) SetTimeout(timeout uint) + func (cfg *Config) SetTlsClientCert(tlsClientCert string) + func (cfg *Config) SetTlsClientKey(tlsClientKey string) + func (cfg *Config) SetTlsInsecureSkipVerify(tlsInsecureSkipVerify bool) + func (cfg *Config) SetTlsMode(tlsMode string) + func (cfg *Config) SetTlsRootCA(tlsRootCA string) + func (cfg *Config) Validate() error