Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SendMessage(topic string, value []byte) error Subscribe(topic string, f func([]byte)) error Close() }
Client provides the interface for streaming messages
type NATS ¶
type NATS struct {
// contains filtered or unexported fields
}
NATS implements the stream Client interface
func (*NATS) SendMessage ¶
SendMessage sends a stream message to NATS
Click to show internal directories.
Click to hide internal directories.