Documentation ¶
Index ¶
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) HealthCheck ¶ added in v0.0.68
func (p *KgoxAdminClient) HealthCheck(ctx context.Context) error
HealthCheck implements pubsubx.PubSubAdminClient.
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) 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.