cherryNatsCluster

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalSubject added in v1.4.4

func GetLocalSubject(prefix, nodeType, nodeID string) string

GetLocalSubject local message nats chan

func GetRemoteSubject added in v1.4.4

func GetRemoteSubject(prefix, nodeType, nodeID string) string

GetRemoteSubject remote message nats chan

func GetRemoteTypeSubject added in v1.4.8

func GetRemoteTypeSubject(prefix, nodeType string) string

func GetReplySubject added in v1.4.4

func GetReplySubject(prefix, nodeType, nodeID string) string

func New

Types

type Cluster

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

func (*Cluster) Init

func (p *Cluster) Init()

func (*Cluster) PublishLocal

func (p *Cluster) PublishLocal(nodeID string, cpacket *cproto.ClusterPacket) error

func (*Cluster) PublishRemote

func (p *Cluster) PublishRemote(nodeID string, cpacket *cproto.ClusterPacket) error

func (*Cluster) PublishRemoteType added in v1.4.7

func (p *Cluster) PublishRemoteType(nodeType string, cpacket *cproto.ClusterPacket) error

func (*Cluster) RequestRemote

func (p *Cluster) RequestRemote(nodeID string, cpacket *cproto.ClusterPacket, timeout ...time.Duration) ([]byte, int32)

func (*Cluster) Stop

func (p *Cluster) Stop()

Jump to

Keyboard shortcuts

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