controllers

package
v0.0.0-...-1a40e3f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionController

type ActionController struct {
	Service services.ActionService
}

ActionController handles HTTP requests on /actions

func (*ActionController) Get

func (a *ActionController) Get() (results []*models.Action)

Get handles GET /actions

func (*ActionController) GetBy

func (a *ActionController) GetBy(module, name string) (action *models.Action, found bool)

GetBy handles GET /actions/<module>/<name>

func (*ActionController) Post

func (a *ActionController) Post(ctx iris.Context) error

Post handles POST /actions

type EventController

type EventController struct {
	Service services.EventService
}

EventController handles HTTP requests on /events

func (*EventController) Get

func (e *EventController) Get() (results []*models.Event)

Get handles GET /events

func (*EventController) GetWatch

func (e *EventController) GetWatch(ctx iris.Context)

GetWatch is the watch interface for events at /events/watch

func (*EventController) Post

func (e *EventController) Post(ctx iris.Context) error

Post handles POST /events

type RuleController

type RuleController struct {
	Service services.RuleService
}

RuleController handles HTTP requests on /rules

func (*RuleController) Get

func (r *RuleController) Get() (results []*models.Rule)

Get handles GET /rules

func (*RuleController) GetBy

func (r *RuleController) GetBy(module, name string) (rule *models.Rule, found bool)

GetBy handles GET /rules/<module>/<name>

func (*RuleController) Post

func (r *RuleController) Post(ctx iris.Context) error

Post handles POST /rules

type WorkerController

type WorkerController struct {
	Service services.WorkerService
}

WorkerController handles HTTP requests on /workers

func (*WorkerController) Get

func (w *WorkerController) Get() (results []*models.Worker)

Get handles GET /workers

func (*WorkerController) GetBy

func (w *WorkerController) GetBy(name string) (worker *models.Worker, found bool)

GetBy handles GET /workers/<name>

func (*WorkerController) Post

func (w *WorkerController) Post(ctx iris.Context) error

Post handles POST /workers

func (*WorkerController) PostReport

func (w *WorkerController) PostReport(ctx iris.Context) error

PostReport handles POST /workers/report

Jump to

Keyboard shortcuts

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