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

feat: expose service name as separate exported constant #851

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

paralin
Copy link
Collaborator

@paralin paralin commented Jun 20, 2023

The service ID (for example, "simple.Echoer") is currently hidden within the constructor of the service implementation.

While it's possible to override the service ID with a constructor parameter, we should also export this ServiceID constant so that it can be used elsewhere.

@paralin paralin requested a review from stephenh June 20, 2023 01:57
The service name (for example, "simple.Echoer") is currently hidden within the
constructor of the service implementation.

While it's possible to override the service name with a constructor parameter,
we should also export this ServiceName constant so it can be used elsewhere.

Signed-off-by: Christian Stewart <christian@aperture.us>
@paralin
Copy link
Collaborator Author

paralin commented Jun 20, 2023

Refactored -> ...ServiceName

@paralin paralin changed the title feat: expose service id as a separate exported constant feat: expose service name as separate exported constant Jun 20, 2023
@stephenh
Copy link
Owner

Looks great, thanks @paralin !

@stephenh stephenh merged commit 84a4ed6 into stephenh:main Jun 20, 2023
@paralin paralin deleted the feat-export-service-id branch June 20, 2023 19:38
stephenh pushed a commit that referenced this pull request Jun 20, 2023
# [1.150.0](v1.149.0...v1.150.0) (2023-06-20)

### Features

* expose service name as a separate exported constant ([#851](#851)) ([84a4ed6](84a4ed6))
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.150.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants