Documentation
¶
Index ¶
- func GetLocalSubject(prefix, nodeType, nodeID string) string
- func GetRemoteSubject(prefix, nodeType, nodeID string) string
- func GetRemoteTypeSubject(prefix, nodeType string) string
- func GetReplySubject(prefix, nodeType, nodeID string) string
- func New(app cfacade.IApplication) cfacade.ICluster
- type Cluster
- func (p *Cluster) Init()
- func (p *Cluster) PublishLocal(nodeID string, cpacket *cproto.ClusterPacket) error
- func (p *Cluster) PublishRemote(nodeID string, cpacket *cproto.ClusterPacket) error
- func (p *Cluster) PublishRemoteType(nodeType string, cpacket *cproto.ClusterPacket) error
- func (p *Cluster) RequestRemote(nodeID string, cpacket *cproto.ClusterPacket, timeout ...time.Duration) ([]byte, int32)
- func (p *Cluster) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalSubject ¶ added in v1.4.4
GetLocalSubject local message nats chan
func GetRemoteSubject ¶ added in v1.4.4
GetRemoteSubject remote message nats chan
func GetRemoteTypeSubject ¶ added in v1.4.8
func GetReplySubject ¶ added in v1.4.4
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
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 ¶
Click to show internal directories.
Click to hide internal directories.