nats

package
v0.0.0-...-f2b9f5f Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSubNotFound = errors.New("subscription not found")
)

Functions

func Close

func Close()

func Init

func Init(url string, subject string) error

Types

type Subscription

type Subscription struct {
	Ch chan []byte
	// contains filtered or unexported fields
}

func NewSub

func NewSub(sessionID string) *Subscription

func (*Subscription) Close

func (s *Subscription) Close()

func (*Subscription) Subscribe

func (s *Subscription) Subscribe(subscribeTo ...string)

func (*Subscription) Unsubscribe

func (s *Subscription) Unsubscribe(unsubscribeFrom ...string)

Jump to

Keyboard shortcuts

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