server

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL