Documentation
¶
Overview ¶
Package api provides an http server for governor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
AdminGroups []string
AuthConf []ginjwt.AuthConfig
Debug bool
Listen string
Logger *zap.Logger
}
Conf allows other packages to compose their api configuration and use our NewAPI factor to put it together for them
type Server ¶
type Server struct {
AuthMW *ginauth.MultiTokenMiddleware
Conf *Conf
DB *sqlx.DB
Router *gin.Engine
AuditLogWriter io.Writer
EventBus *eventbus.Client
// contains filtered or unexported fields
}
Server holds data necessary to run the API and has associated methods
Click to show internal directories.
Click to hide internal directories.