mq

package
v1.4.26 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRemote

func WithRemote(url string, mq MQ) actor.SystemOption

Types

type Cluster

type Cluster struct {
	actor.Base
	// contains filtered or unexported fields
}

func (*Cluster) OnHandle added in v1.3.0

func (c *Cluster) OnHandle(msg actor.Message)

func (*Cluster) OnInit

func (c *Cluster) OnInit()

func (*Cluster) OnStop

func (c *Cluster) OnStop() bool

type MQ

type MQ interface {
	Connect(url string) error
	Close()
	Pub(subject string, data []byte) error
	Req(subject string, data []byte) ([]byte, error)
	SubASync(subject string, callback func(data []byte)) error
	UnSub(subject string, drained bool) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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