inmemorypubsub

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopAdminClient

func NewNoopAdminClient(c *pubsubx.Config) pubsubx.PubSubAdminClient

func SetupInMemoryPubSub

func SetupInMemoryPubSub(l *logrusx.Logger, c *pubsubx.Config) (*memoryPubSub, error)

Types

type NoopAdminClient

type NoopAdminClient struct {
	*pubsubx.Config
	// contains filtered or unexported fields
}

func (*NoopAdminClient) Close

func (n *NoopAdminClient) Close()

Close implements pubsubx.PubSubAdminClient.

func (*NoopAdminClient) CreateTopic

func (n *NoopAdminClient) CreateTopic(ctx context.Context, partitions int32, replicationFactor int16, topic string, configs ...map[string]*string) (kadm.CreateTopicResponse, error)

CreateTopic implements pubsubx.PubSubAdminClient.

func (*NoopAdminClient) CreateTopics added in v0.0.85

func (n *NoopAdminClient) CreateTopics(ctx context.Context, partitions int32, replicationFactor int16, topics []string, configs ...map[string]*string) (kadm.CreateTopicResponses, error)

CreateTopic implements pubsubx.PubSubAdminClient.

func (*NoopAdminClient) DeleteGroup added in v0.0.86

func (*NoopAdminClient) DeleteGroups added in v0.0.86

DeleteGroups deletes groups and related resources.

func (*NoopAdminClient) DeleteTopic

func (n *NoopAdminClient) DeleteTopic(ctx context.Context, topic string) (kadm.DeleteTopicResponse, error)

DeleteTopic implements pubsubx.PubSubAdminClient.

func (*NoopAdminClient) DeleteTopicWithRetryTopics added in v0.0.86

func (n *NoopAdminClient) DeleteTopicWithRetryTopics(ctx context.Context, topic string) (kadm.DeleteTopicResponses, error)

func (*NoopAdminClient) DeleteTopicsWithRetryTopics added in v0.0.86

func (n *NoopAdminClient) DeleteTopicsWithRetryTopics(ctx context.Context, topics ...string) (kadm.DeleteTopicResponses, error)

func (*NoopAdminClient) HealthCheck

func (n *NoopAdminClient) HealthCheck(ctx context.Context) error

HealthCheck implements pubsubx.PubSubAdminClient.

func (*NoopAdminClient) ListTopics

func (n *NoopAdminClient) ListTopics(ctx context.Context, topics ...string) (kadm.TopicDetails, error)

ListTopics implements pubsubx.PubSubAdminClient.

Jump to

Keyboard shortcuts

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