nats

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfNatsDsn = config.Key("nats", "dsn")
)
View Source
var (
	ModuleName = dep.Name("wk", "nats")
)

Functions

func Module

func Module() dep.Module

Types

type Client

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

func (*Client) Subject

func (c *Client) Subject(ctx context.Context, subject string) (message.Mailbox, error)

type Mailbox

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

func (*Mailbox) Emit

func (m *Mailbox) Emit(ctx context.Context, message message.Message) error

func (*Mailbox) ReadC

func (m *Mailbox) ReadC(ctx context.Context) (<-chan message.Message, context.CancelFunc)

Jump to

Keyboard shortcuts

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