nats

package module
v0.0.0-...-5c21f69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 6 Imported by: 0

README

xk6-nats-jetstream

This project is based on: https://github.com/grafana/xk6/issues/15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Publish

func (c *Client) Publish(subject string, payload string) error

func (*Client) PublishJetstream

func (c *Client) PublishJetstream(stream string, subject string, payload string, ackwait int) (*nats.PubAck, error)

func (*Client) Request

func (c *Client) Request(subject string, payload string) (string, error)

type Nats

type Nats struct{}

func (*Nats) XClient

func (r *Nats) XClient(ctxPtr *context.Context, natsServer string, timeoutMS int) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL