pub_client

package
v0.0.0-...-ee25ada Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EachPartitionError

type EachPartitionError struct {
	*mq_pb.BrokerPartitionAssignment
	Err error
	// contains filtered or unexported fields
}

type EachPartitionPublishJob

type EachPartitionPublishJob struct {
	*mq_pb.BrokerPartitionAssignment
	// contains filtered or unexported fields
}

type PublishClient

type PublishClient struct {
	mq_pb.SeaweedMessaging_PublishMessageClient
	Broker string
	Err    error
}

type PublisherConfiguration

type PublisherConfiguration struct {
	Topic                     topic.Topic
	CreateTopic               bool
	CreateTopicPartitionCount int32
	Brokers                   []string
}

type TopicPublisher

type TopicPublisher struct {
	sync.Mutex // protects grpc
	// contains filtered or unexported fields
}

func NewTopicPublisher

func NewTopicPublisher(config *PublisherConfiguration) *TopicPublisher

func (*TopicPublisher) Publish

func (p *TopicPublisher) Publish(key, value []byte) error

func (*TopicPublisher) Shutdown

func (p *TopicPublisher) Shutdown() error

Jump to

Keyboard shortcuts

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