Documentation
¶
Index ¶
- Constants
- type Component
- func (p *Component) GetLocalSubject(prefix, nodeType, nodeID string) string
- func (p *Component) GetRemoteSubject(prefix, nodeType, nodeID string) string
- func (p *Component) GetRemoteTypeSubject(prefix, nodeType string) string
- func (p *Component) GetReplySubject(prefix, nodeType, nodeID string) string
- func (p *Component) Init()
- func (*Component) Mode() string
- func (*Component) Name() string
- func (p *Component) OnStop()
- func (p *Component) PublishLocal(nodeID string, cpacket *cproto.ClusterPacket) error
- func (p *Component) PublishRemote(nodeID string, cpacket *cproto.ClusterPacket) error
- func (p *Component) PublishRemoteType(nodeType string, cpacket *cproto.ClusterPacket) error
- func (p *Component) RequestRemote(nodeID string, cpacket *cproto.ClusterPacket, timeout ...time.Duration) ([]byte, int32)
Constants ¶
View Source
const (
Name = "cluster_component"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶ added in v1.1.1
func (*Component) GetLocalSubject ¶ added in v1.5.0
func (*Component) GetRemoteSubject ¶ added in v1.5.0
GetRemoteSubject remote message nats chan
func (*Component) GetRemoteTypeSubject ¶ added in v1.5.0
func (*Component) GetReplySubject ¶ added in v1.5.0
func (*Component) PublishLocal ¶ added in v1.5.0
func (p *Component) PublishLocal(nodeID string, cpacket *cproto.ClusterPacket) error
func (*Component) PublishRemote ¶ added in v1.5.0
func (p *Component) PublishRemote(nodeID string, cpacket *cproto.ClusterPacket) error
func (*Component) PublishRemoteType ¶ added in v1.5.0
func (p *Component) PublishRemoteType(nodeType string, cpacket *cproto.ClusterPacket) error
func (*Component) RequestRemote ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.