package
0.0.0-20241007070122-bf5d5b8180b0
Repository: https://github.com/lordofthemind/htmx_go.git
Documentation: pkg.go.dev
# Functions
ConnectToMongoDB connects to MongoDB and returns the client.
GetDatabase returns the MongoDB database instance for the given database name.
GracefulShutdown handles the graceful shutdown of the server.
No description provided by the author
SetUpServerWithOptionalCORS sets up the Gin router with or without CORS based on the UseCORS flag.
StartGinServer starts the provided Gin server with or without TLS based on application settings.
# Structs
BasicServerSetup is the struct for setting up the server without CORS.
CorsServerSetup is the struct for setting up the server with CORS.
# Interfaces
ServerSetup defines the interface for setting up a Gin server.