cherryCluster

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 11 Imported by: 7

Documentation

Index

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

type Component struct {
	cfacade.Component
	// contains filtered or unexported fields
}

func New added in v1.3.0

func New() *Component

func (*Component) GetLocalSubject added in v1.5.0

func (p *Component) GetLocalSubject(prefix, nodeType, nodeID string) string

func (*Component) GetRemoteSubject added in v1.5.0

func (p *Component) GetRemoteSubject(prefix, nodeType, nodeID string) string

GetRemoteSubject remote message nats chan

func (*Component) GetRemoteTypeSubject added in v1.5.0

func (p *Component) GetRemoteTypeSubject(prefix, nodeType string) string

func (*Component) GetReplySubject added in v1.5.0

func (p *Component) GetReplySubject(prefix, nodeType, nodeID string) string

func (*Component) Init added in v1.1.5

func (p *Component) Init()

func (*Component) Mode added in v1.5.0

func (*Component) Mode() string

func (*Component) Name added in v1.1.5

func (*Component) Name() string

func (*Component) OnStop added in v1.1.5

func (p *Component) OnStop()

func (*Component) PublishLocal added in v1.5.0

func (p *Component) PublishLocal(nodeID string, msg *cfacade.Message) error

func (*Component) PublishRemote added in v1.5.0

func (p *Component) PublishRemote(nodeID string, msg *cfacade.Message) error

func (*Component) PublishRemoteType added in v1.5.0

func (p *Component) PublishRemoteType(nodeType string, msg *cfacade.Message) error

func (*Component) RawPublish added in v1.6.2

func (p *Component) RawPublish(subject string, data []byte) error

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 (p *Component) RequestRemote(nodeID string, msg *cfacade.Message, timeout ...time.Duration) ([]byte, int32)

func (*Component) RequestReply added in v1.6.3

func (p *Component) RequestReply(reqID, replySubject string, data []byte) error

RequestReply publishes a reqID-carrying message to a raw subject via the publish connect.

func (*Component) RequestSync added in v1.6.3

func (p *Component) RequestSync(subject string, data []byte, timeout ...time.Duration) ([]byte, error)

Jump to

Keyboard shortcuts

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