Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIConfig ¶
type APIConfig struct { Shutdown chan os.Signal Log *zap.SugaredLogger Tracer trace.Tracer TokenStore tokens.TokenStorer Demo bool }
APIConfig is the configuration struct to build the API handlers
type App ¶
App is the entrypoint into our application and what configures our TODO: context object for each of our http handlers.
func NewApp ¶
func NewApp(shutdown chan os.Signal, log *zap.SugaredLogger) *App
NewApp creates an App value that handle a set of routes for the application.
func (*App) SignalShutdown ¶
func (a *App) SignalShutdown()
SignalShutdown is used to gracefully shutdown the app when an integrity issue is identified.
Click to show internal directories.
Click to hide internal directories.