v1

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRouter

type APIRouter struct {
	Cache *gocache.Cache
	// contains filtered or unexported fields
}

func NewAPIRouter

func NewAPIRouter(
	jobMap map[string]*config.Job,
	connections *network.Connections,
	cache *gocache.Cache,
	loggers chaoslogger.Loggers,
) *APIRouter

func (*APIRouter) AddRoutes

func (r *APIRouter) AddRoutes(healthChecker *healthcheck.HealthChecker, router *mux.Router) *mux.Router

type Bots

type Bots struct {
	StatusMap map[string]*healthcheck.Details
	Loggers   chaoslogger.Loggers
}

func (*Bots) Status

func (bots *Bots) Status(w http.ResponseWriter, _ *http.Request)

CalcExample godoc @Summary get master status @Description Bot status @Tags Status @Accept json @Produce json @Success 200 {string} string "Bots status" @Failure 500 {string} string "ok" @Router /master/status [get]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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