broker

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateStatus

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

type MessageQueueBroker

type MessageQueueBroker struct {
	mq_pb.UnimplementedSeaweedMessagingServer

	MasterClient *wdclient.MasterClient
	// contains filtered or unexported fields
}

func NewMessageBroker

func NewMessageBroker(option *MessageQueueBrokerOption, grpcDialOption grpc.DialOption) (mqBroker *MessageQueueBroker, err error)

func (*MessageQueueBroker) AdjustedUrl

func (broker *MessageQueueBroker) AdjustedUrl(location *filer_pb.Location) string

func (*MessageQueueBroker) AssignSegmentBrokers

func (*MessageQueueBroker) CheckBrokerLoad

func (*MessageQueueBroker) CheckSegmentStatus

func (*MessageQueueBroker) FindBrokerLeader

func (*MessageQueueBroker) GetFiler

func (broker *MessageQueueBroker) GetFiler() pb.ServerAddress

func (*MessageQueueBroker) OnBrokerUpdate

func (broker *MessageQueueBroker) OnBrokerUpdate(update *master_pb.ClusterNodeUpdate, startFrom time.Time)

func (*MessageQueueBroker) WithFilerClient

func (broker *MessageQueueBroker) WithFilerClient(streamingMode bool, fn func(filer_pb.SeaweedFilerClient) error) error

type MessageQueueBrokerOption

type MessageQueueBrokerOption struct {
	Masters            map[string]pb.ServerAddress
	FilerGroup         string
	DataCenter         string
	Rack               string
	DefaultReplication string
	MaxMB              int
	Ip                 string
	Port               int
	Cipher             bool
}

Jump to

Keyboard shortcuts

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