cherryNatsCluster

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(app cfacade.IApplication, options ...OptionFunc) cfacade.ICluster

Types

type Cluster

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

func (*Cluster) Init

func (p *Cluster) Init()

func (*Cluster) Publish

func (p *Cluster) Publish(subject string, data []byte) error

func (*Cluster) PublishLocal

func (p *Cluster) PublishLocal(nodeId string, request *cproto.ClusterPacket) error

func (*Cluster) PublishRemote

func (p *Cluster) PublishRemote(nodeId string, request *cproto.ClusterPacket) error

func (*Cluster) RequestRemote

func (p *Cluster) RequestRemote(nodeId string, request *cproto.ClusterPacket, timeout ...time.Duration) cproto.Response

func (*Cluster) Stop

func (p *Cluster) Stop()

type OptionFunc

type OptionFunc func(o *Cluster)

func WithBufferSize

func WithBufferSize(size int) OptionFunc

Jump to

Keyboard shortcuts

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