Documentation ¶
Index ¶
- Constants
- Variables
- func SetAutoReconnect(reconnect bool) func(*Config)
- func SetDb(db string) func(*Config)
- func SetEnableCompression(enableCompression bool) func(*Config)
- func SetErrorHandler(errorHandler func(error)) func(*Config)
- func SetPassword(password string) func(*Config)
- func SetReadTimeout(readTimeout time.Duration) func(*Config)
- func SetReconnectIntervalMs(reconnectIntervalMs int) func(*Config)
- func SetReconnectRetryCount(reconnectRetryCount int) func(*Config)
- func SetUser(user string) func(*Config)
- func SetWriteTimeout(writeTimeout time.Duration) func(*Config)
- type Config
- type IndexedChan
- type Schemaless
Constants ¶
View Source
const ( InfluxDBLineProtocol = 1 OpenTSDBTelnetLineProtocol = 2 OpenTSDBJsonFormatProtocol = 3 )
Variables ¶
View Source
var (
ConnectTimeoutErr = errors.New("schemaless connect timeout")
)
Functions ¶
func SetAutoReconnect ¶
func SetEnableCompression ¶
func SetErrorHandler ¶
func SetPassword ¶
func SetReadTimeout ¶
func SetReconnectIntervalMs ¶
func SetReconnectRetryCount ¶
func SetWriteTimeout ¶
Types ¶
type IndexedChan ¶
type IndexedChan struct {
// contains filtered or unexported fields
}
type Schemaless ¶
type Schemaless struct {
// contains filtered or unexported fields
}
func NewSchemaless ¶
func NewSchemaless(config *Config) (*Schemaless, error)
func (*Schemaless) Close ¶
func (s *Schemaless) Close()
Click to show internal directories.
Click to hide internal directories.