apiserver

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Module includes the providers and registers provided by apiserver and handlers.
	Module = fx.Options(
		fx.Provide(
			uiserver.AssetFS,
			newAPIHandlerEngine,
			NewServer,
		),
		fx.Invoke(serverRegister),
		handlerModule)
)

Functions

func Handler

func Handler(s *Server) http.Handler

Handler returns a `http.Handler`

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a server to run API service.

func NewServer

func NewServer(
	conf *config.ChaosDashboardConfig,
	uiAssetFS http.FileSystem,
	apiHandlerEngine *gin.Engine,
) *Server

NewServer returns a Server instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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