Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements a PubSub writer. It writes messages synchronously. It doesn't support batching/async writing.
func NewWriter ¶
func NewWriter(params WriterParams) (*Writer, error)
NewWriter creates new instance of the Writer.
type WriterParams ¶
type WriterParams struct { Conn *nats.Conn Subject string }
WriterParams is an incoming params for the NewWriter function.
Click to show internal directories.
Click to hide internal directories.