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, msg *cfacade.Message) error
- func (p *Component) PublishRemote(nodeID string, msg *cfacade.Message) error
- func (p *Component) PublishRemoteType(nodeType string, msg *cfacade.Message) error
- func (p *Component) RawPublish(subject string, data []byte) error
- func (p *Component) RawRequest(subject string, data []byte, timeout ...time.Duration) ([]byte, error)
- func (p *Component) RequestRemote(nodeID string, msg *cfacade.Message, timeout ...time.Duration) ([]byte, int32)
- func (p *Component) RequestReply(reqID, replySubject string, data []byte) error
- func (p *Component) RequestSync(subject string, data []byte, timeout ...time.Duration) ([]byte, error)
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 (*Component) PublishRemote ¶ added in v1.5.0
func (*Component) PublishRemoteType ¶ added in v1.5.0
func (*Component) RawPublish ¶ added in v1.6.2
RawPublish publishes data to a raw subject via the publish connect.
func (*Component) RawRequest ¶ added in v1.6.2
func (p *Component) RawRequest(subject string, data []byte, timeout ...time.Duration) ([]byte, error)
RawRequest sends a request to a raw subject via the publish connect.
func (*Component) RequestRemote ¶ added in v1.5.0
func (*Component) RequestReply ¶ added in v1.6.3
RequestReply publishes a reqID-carrying message to a raw subject via the publish connect.
Click to show internal directories.
Click to hide internal directories.