discovery-service
discovery-service copied to clipboard
refactor: move `state.State` to public package
Export the state struct from the internal package into a public package. It is a dependency of the ClusterServer
GRPC service - so to be able to import and use it, the state also needs to be exported.
Does it make sense to export the entrypoint, i.e. cmd/main.go
as a function in a package?
Does it make sense to export the entrypoint, i.e.
cmd/main.go
as a function in a package?
Hm, maybe not exactly that, as lots of other things going on there, but probably exporting the code that builds the state + grpc server struct + storage as a single function could work.
Does it make sense to export the entrypoint, i.e.
cmd/main.go
as a function in a package?Hm, maybe not exactly that, as lots of other things going on there, but probably exporting the code that builds the state + grpc server struct + storage as a single function could work.
yeah, I mean exactly something like that