Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestPayload ¶
type SController ¶
type SController struct {
// contains filtered or unexported fields
}
func NewServiceController ¶
func NewServiceController( jobs map[string]*config.Job, connections *network.Connections, cache *gocache.Cache, loggers chaoslogger.Loggers, ) *SController
func (*SController) ServiceAction ¶
func (s *SController) ServiceAction(w http.ResponseWriter, r *http.Request)
CalcExample godoc @Summary Inject service failures @Description Perform start or stop action on a service @Tags Failure injections @Accept json @Produce json @Param action query string true "Specify to perform a recover or a kill on the specified service" Enums(kill, recover) @Param requestPayload body RequestPayload true "Specify the job name, service name and target" @Success 200 {object} response.Payload @Failure 400 {string} http.Error @Failure 500 {string} http.Error @Router /service [post]
Click to show internal directories.
Click to hide internal directories.