Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Config = viper.New()
)
package level variable holding a viper instance that will manage sherlock's config
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { AllocationPools *allocationpools.AllocationPoolController Services *services.ServiceController Clusters *controllers.Cluster Builds *builds.BuildController Environments *environments.EnvironmentController Deploys *deploys.DeployController Handler http.Handler // Used to pass the dbConn to testing setup helpers // without needing to instantiate a full model instance DB *gorm.DB Stackdriver *stackdriver.Exporter }
Application is the core application type containing a router and db connection repository is a wrapper type so we can define our own methods on the type holding the DB connection pool
func (*Application) ServeHTTP ¶
func (a *Application) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implments the http.Handler interface for a Sherlock application instance
func (*Application) ShutdownStackdriver ¶ added in v0.0.9
func (a *Application) ShutdownStackdriver()
ShutdownStackdriver is used to flush the metrics buffer and shutdown the exporter before sherlock itself closes
Click to show internal directories.
Click to hide internal directories.