Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cassandra ¶
type Cassandra struct {
// contains filtered or unexported fields
}
Cassandra holds the configuration properties for a running instance of the Cassandra sink.
func NewCassandra ¶
NewCassandra creates a new Cassandra writer type.
func (*Cassandra) CloseAsync ¶
func (c *Cassandra) CloseAsync()
CloseAsync shuts down the Cassandra output and stops processing messages.
func (*Cassandra) ConnectWithContext ¶
ConnectWithContext establishes a connection to an Cassandra.
func (*Cassandra) WaitForClose ¶
WaitForClose blocks until the Cassandra output has closed down.
type CassandraConfig ¶
type CassandraConfig struct { Nodes []string `json:"nodes" yaml:"nodes"` AsyncParts bool `json:"async" yaml:"async"` PasswordAuthenticator PasswordAuthenticator `json:"password_authenticator" yaml:"password_authenticator"` Keyspace string `json:"keyspace" yaml:"keyspace"` Table string `json:"table" yaml:"table"` Consistency string `json:"consistency" yaml:"consistency"` retries.Config `json:",inline" yaml:",inline"` }
CassandraConfig contains configuration fields for the Cassandra output type.
func NewCassandraConfig ¶
func NewCassandraConfig() *CassandraConfig
NewCassandraConfig creates a new CassandraConfig with default values.
type PasswordAuthenticator ¶
type PasswordAuthenticator struct { Enabled bool `json:"enabled" yaml:"enabled"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` }
PasswordAuthenticator contains the fields that will be used to authenticate with the Cassandra cluster.
Click to show internal directories.
Click to hide internal directories.