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
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
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
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
Click to show internal directories.
Click to hide internal directories.