Documentation ¶
Index ¶
- type DefaultMarshaler
- type KgoxAdminClient
- func (p *KgoxAdminClient) CreateTopic(ctx context.Context, partitions int32, replicationFactor int16, topic string, ...) (kadm.CreateTopicResponse, error)
- func (p *KgoxAdminClient) CreateTopics(ctx context.Context, partitions int32, replicationFactor int16, ...) (kadm.CreateTopicResponses, error)
- func (p *KgoxAdminClient) HealthCheck(ctx context.Context) error
- type Marshaler
- type PoisonQueueHandler
- type PubSub
- func (p *PubSub) AdminClient() (pubsubx.PubSubAdminClient, error)
- func (p *PubSub) Close() error
- func (p *PubSub) PoisonQueueHandler() PoisonQueueHandler
- func (p *PubSub) Publisher() pubsubx.Publisher
- func (p *PubSub) Subscriber(group string, topics []messagex.Topic, opts ...pubsubx.SubscriberOption) (pubsubx.Subscriber, error)
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KgoxAdminClient ¶ added in v0.0.68
func NewPubSubAdminClient ¶ added in v0.0.68
func NewPubSubAdminClient(cl *kadm.Client, defaultCreateTopicConfigEntries map[string]*string) *KgoxAdminClient
func (*KgoxAdminClient) CreateTopic ¶ added in v0.0.68
func (p *KgoxAdminClient) CreateTopic(ctx context.Context, partitions int32, replicationFactor int16, topic string, configs ...map[string]*string) (kadm.CreateTopicResponse, error)
CreateTopic implements PubSubAdminClient. Subtle: this method shadows the method (*Client).CreateTopic of pubsubAdminClient.Client.
func (*KgoxAdminClient) CreateTopics ¶ added in v0.0.85
func (p *KgoxAdminClient) CreateTopics(ctx context.Context, partitions int32, replicationFactor int16, topics []string, configs ...map[string]*string) (kadm.CreateTopicResponses, error)
CreateTopics implements PubSubAdminClient. Subtle: this method shadows the method (*Client).CreateTopics of pubsubAdminClient.Client.
func (*KgoxAdminClient) HealthCheck ¶ added in v0.0.68
func (p *KgoxAdminClient) HealthCheck(ctx context.Context) error
HealthCheck implements pubsubx.PubSubAdminClient.
type PoisonQueueHandler ¶ added in v0.0.84
type PoisonQueueHandler interface { PublishMessagesToPoisonQueue(ctx context.Context, topic string, consumerGroup messagex.ConsumerGroup, msgErrs []error, msgs []*messagex.Message) error PublishMessagesToPoisonQueueWithGenericError(ctx context.Context, topic string, consumerGroup messagex.ConsumerGroup, msgErr error, msgs ...*messagex.Message) error CanUsePoisonQueue() bool }
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
func (*PubSub) AdminClient ¶ added in v0.0.68
func (p *PubSub) AdminClient() (pubsubx.PubSubAdminClient, error)
AdminClient implements pubsubx.PubSub.
func (*PubSub) PoisonQueueHandler ¶ added in v0.0.84
func (p *PubSub) PoisonQueueHandler() PoisonQueueHandler
PoisonQueueHandler implements pubsubx.PubSub.
func (*PubSub) Subscriber ¶
func (p *PubSub) Subscriber(group string, topics []messagex.Topic, opts ...pubsubx.SubscriberOption) (pubsubx.Subscriber, error)
Subscriber implements pubsubx.PubSub.
Click to show internal directories.
Click to hide internal directories.