Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Endpoint string `mapstructure:"address"` // Endpoint of the nats server
Cluster string `mapstructure:"clusterID"` // CluserID of the nats cluster
TLSInsecure bool `mapstructure:"tls-insecure"` // Whether to verify TLS certificates
TLSRootCACertificate string `mapstructure:"tls-root-ca-cert"` // The root CA certificate used to validate the TLS certificate
EnableTLS bool `mapstructure:"enable-tls"` // Enable TLS
AuthUsername string `mapstructure:"username"` // Username for authentication
AuthPassword string `mapstructure:"password"` // Password for authentication
MaxAckPending int `mapstructure:"max-ack-pending"` // Maximum number of unacknowledged messages
AckWait time.Duration `mapstructure:"ack-wait"` // Time to wait for an ack
}
Config is the configuration needed for a NATS event stream
type Event ¶
func (*Event) InProgress ¶
Click to show internal directories.
Click to hide internal directories.