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

Use enums for states, instead of passing around strings #18

Open
aagrxyz opened this issue Apr 5, 2020 · 0 comments
Open

Use enums for states, instead of passing around strings #18

aagrxyz opened this issue Apr 5, 2020 · 0 comments

Comments

@aagrxyz
Copy link
Member

aagrxyz commented Apr 5, 2020

We need to use enums to store the state of the service instead of strings like "stopped", "running" etc..

Enums provide better way to handle states and are the recommended way for a type that has a fixed set of values.

@aagrxyz aagrxyz changed the title Enums for States Use enums for states, instead of passing around strings Apr 12, 2020
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

1 participant