Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client] add ability to list topic names which exist on the server #1168

Open
jayshrivastava opened this issue Feb 6, 2024 · 3 comments
Open

Comments

@jayshrivastava
Copy link
Contributor

jayshrivastava commented Feb 6, 2024

There is no way to list the topics available to be read
image

Pubsub and kafka libraries (ex. sarama) have this feature

@RobertIndie
Copy link
Member

We could list the topics using the pulsaradmin. Here is the API:

// List returns the list of topics under a namespace
List(utils.NameSpaceName) ([]string, []string, error)

Is that OK for you?

@jayshrivastava
Copy link
Contributor Author

@RobertIndie I think that's okay. Can you please clarify what to pass into the namespace? When I create a client pulsar.NewClient(...), what namespace does it use by default?

@RobertIndie
Copy link
Member

@jayshrivastava The default namespace is public/default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants