api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

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

func NewAPIOptions

func NewAPIOptions(
	restAPIOptions *config.RestAPIOptions,
	jobMap map[string]*config.Job,
	connections *network.Connections,
	loggers chaoslogger.Loggers,
) *Options

type RestAPI

type RestAPI struct {
	Router  *mux.Router
	Loggers chaoslogger.Loggers
	Port    string
}

func NewRestAPI

func NewRestAPI(opt *Options, healthChecker *healthcheck.HealthChecker) *RestAPI

func (*RestAPI) RunAPIController

func (restAPI *RestAPI) RunAPIController()

Directories

Path Synopsis
v1
cpu

Jump to

Keyboard shortcuts

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