package
0.0.0-20210102141914-a480443c213f
Repository: https://github.com/leeprovoost/go-rest-api-template.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CreateContextForTestSetup initialises an application context struct for testing purposes.
CreateMockDataSet initialises a database for test purposes.
CreateUserHandler adds a new user.
DeleteUserHandler deletes a user.
GetUserHandler returns a user object.
HealthcheckHandler returns useful info about the app.
ListUsersHandler returns a list of users.
MakeHandler allows us to pass an environment struct to our handlers, without resorting to global variables.
NewUserService creates a new Carer Service with the system's database connection.
PassportsHandler not implemented yet.
StartServer Wraps the mux Router and uses the Negroni Middleware.
UpdateUserHandler updates a user object.

# Structs

AppEnv holds application configuration data.
Route is the model for the router setup.
UserService will hold the connection and key db info.

# Type aliases

HandlerFunc is a custom implementation of the http.HandlerFunc.
Routes are the main setup for our Router.