Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(timeWindow int) (*natsserver.Server, error)
Types ¶
type Client ¶
type Client struct {
nats.JetStreamContext
}
func GetConsumer ¶
func GetConsumer() *Client
func GetPublisher ¶
func GetPublisher() *Client
func (*Client) ConsumeMsg ¶
func (client *Client) ConsumeMsg() (chan MessageWithContext, error)
func (*Client) PublishMsg ¶
func (*Client) SetJetStreamContext ¶
type MessageWithContext ¶
Click to show internal directories.
Click to hide internal directories.