inmemorypubsub

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopAdminClient

func NewNoopAdminClient() pubsubx.PubSubAdminClient

func SetupInMemoryPubSub

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

Types

type NoopAdminClient

type NoopAdminClient struct {
	// 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) DeleteTopic

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

DeleteTopic implements pubsubx.PubSubAdminClient.

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