Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpConfig ¶
type CassandraConfig ¶
type CassandraConfig struct { Hosts []string `json:"hosts"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` WriterWorkers int `json:"writer_workers"` // 20 is conservative, 80 is aggressive NumConns int `json:"num_conns"` // gocql default is 2, don't make it too high Timeout int `json:"timeout"` // in ms, set it to 5s, gocql default 600ms is way too aggressive for heavy writes by multiple workers ConnectTimeout int `json:"connect_timeout"` // in ms, set it to 1s, gocql default 600ms may be ok, but let's stay on the safe side KeyspaceReplicationConfig string `json:"keyspace_replication_config"` // { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 } SslOpts *SslOptions `json:"ssl_opts"` }
type EnvConfig ¶
type EnvConfig struct { HandlerExecutableType string `json:"handler_executable_type"` Cassandra CassandraConfig `json:"cassandra"` Amqp AmqpConfig `json:"amqp"` ZapConfig zap.Config `json:"zap_config"` ThreadPoolSize int `json:"thread_pool_size"` DeadLetterTtl int `json:"dead_letter_ttl"` CaPath string `json:"ca_path"` Webapi WebapiConfig `json:"webapi,omitempty"` CustomProcessorsSettings map[string]json.RawMessage `json:"custom_processors"` CustomProcessorDefFactoryInstance sc.CustomProcessorDefFactory }
func ReadEnvConfigFile ¶
func (*EnvConfig) Deserialize ¶
type SslOptions ¶
type SslOptions struct { CertPath string `json:"cert_path"` KeyPath string `json:"key_path"` CaPath string `json:"ca_path"` EnableHostVerification bool `json:"enable_host_verification"` }
This was not tested outside of the EnableHostVerification=false scenario
type WebapiConfig ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.