Documentation ¶
Overview ¶
Package stream provides streaming clients used by `Consume` and `Publish` methods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NatsFromConfig ¶
func NatsFromConfig(connName string, cfg NatsConfig) (events.Stream, error)
NatsFromConfig returns a nats stream from the given config
Types ¶
type Chan ¶
type Chan [2]chan interface{}
Chan is a channel based streaming clients Useful for tests or in memory applications
type NatsConfig ¶
type NatsConfig struct { Endpoint string // Endpoint of the nats server Cluster string // CluserID of the nats cluster TLSInsecure bool // Whether to verify TLS certificates TLSRootCACertificate string // The root CA certificate used to validate the TLS certificate EnableTLS bool // Enable TLS }
NatsConfig is the configuration needed for a NATS event stream
Click to show internal directories.
Click to hide internal directories.