Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BasicAPIList = []string{ `\/api\.vaultproxy\.v1\.Secret\/.*`, `\/api\.vaultproxy\.v1\.Auth\/.*`, } GrantAPIList = []string{ `\/api\.vaultproxy\.v1\.AuthGrant\/.*`, } )
View Source
var ProviderSet = wire.NewSet(NewHTTPServer)
ProviderSet is server providers.
Functions ¶
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, secretService *service.SecretService, authService *service.AuthService, authGrantService *service.AuthGrantService, healthService *service.HealthService, _ log.Logger) *http.Server
Start a new http server, it has following step
1. Add several middleware(authentication , authorization, tracing) 2. Read http basic setting from configmap, and append http server options list 3. Make a http instance 4. Regist api to it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.