Hello server is a small server for all your hello needs! It can be used for incrmenting hello counters and returning information about said hello count.
The server can be started with go run ./.... Migrations are defined in
the ./migrations folder.
Endpoints are defined by the Server struct. The postgres package has a PostgreSQL implementation
of a storage backend.
The sever implements 4 endpoints.
/hello/{key}: Should increment the hello counter in the database and return info about the hello key.
/background-hello/count/{key}: Starts a background job to increment the given key in the background.
/channel-hello/{key}: Uses a channel based approach to increment a hello key 10 times.
/many-hello/{count}: Creates a list of count hellos suffixed by and index, e.g. ["hello 1", ... "hello n"] and
returns these hellos along with a count of how many of them have an odd-numbered suffix.