mq

package
v0.0.0-...-3cf0c3c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nats

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

Nats ...

func NewNats

func NewNats(url string) (*Nats, error)

NewNats ..

func NewNatsOptions

func NewNatsOptions(url string) (*Nats, error)

NewNatsOptions ..

func (*Nats) Publish

func (n *Nats) Publish(ctx context.Context, subj string, msg interface{}) (err error)

Publish ...

func (*Nats) Subscribe

func (n *Nats) Subscribe(topic string, h mq.SubscribeHandler, queue ...string) (err error)

Subscribe ...

type Stan

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

Stan ...

func NewStan

func NewStan(conn stan.Conn, subOpts ...stan.SubscriptionOption) (*Stan, error)

NewStan ..

func (*Stan) Publish

func (n *Stan) Publish(ctx context.Context, subj string, msg interface{}) (err error)

Publish ...

func (*Stan) Subscribe

func (n *Stan) Subscribe(topic string, h mq.SubscribeHandler, queue ...string) (err error)

Subscribe ...

Jump to

Keyboard shortcuts

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