controllers

package
v0.0.0-...-b9dc9a6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertController

type AlertController struct {
	beego.Controller
}

func (*AlertController) ClassifyAlerts

func (c *AlertController) ClassifyAlerts()

@router /classify [get]

func (*AlertController) Confirm

func (c *AlertController) Confirm()

@router / [put]

func (*AlertController) GetAlerts

func (c *AlertController) GetAlerts()

@router / [get]

func (*AlertController) HandleAlerts

func (c *AlertController) HandleAlerts()

@router / [post]

func (*AlertController) ShowAlerts

func (c *AlertController) ShowAlerts()

@router /rules/:ruleid [get]

func (*AlertController) URLMapping

func (c *AlertController) URLMapping()

type ConfigController

type ConfigController struct {
	beego.Controller
}

func (*ConfigController) AddConfig

func (c *ConfigController) AddConfig()

@router / [post]

func (*ConfigController) DeleteConfig

func (c *ConfigController) DeleteConfig()

@router /:id [delete]

func (*ConfigController) GetAll

func (c *ConfigController) GetAll()

@router / [get]

func (*ConfigController) URLMapping

func (c *ConfigController) URLMapping()

func (*ConfigController) UpdateConfig

func (c *ConfigController) UpdateConfig()

@router /:id [put]

type GroupController

type GroupController struct {
	beego.Controller
}

func (*GroupController) AddGroup

func (c *GroupController) AddGroup()

@router / [post]

func (*GroupController) DeleteGroup

func (c *GroupController) DeleteGroup()

@router /:id [delete]

func (*GroupController) GetAllGroup

func (c *GroupController) GetAllGroup()

@router / [get]

func (*GroupController) URLMapping

func (c *GroupController) URLMapping()

func (*GroupController) UpdateGroup

func (c *GroupController) UpdateGroup()

@router /:id [put]

type LoginController

type LoginController struct {
	beego.Controller
}

func (*LoginController) GetCurrentUser

func (c *LoginController) GetCurrentUser()

@router /username [get]

func (*LoginController) GetMethod

func (c *LoginController) GetMethod()

@router /method [get]

func (*LoginController) Ldap

func (c *LoginController) Ldap()

@router /ldap [post]

func (*LoginController) Local

func (c *LoginController) Local()

@router /local [post]

func (*LoginController) URLMapping

func (c *LoginController) URLMapping()

type LogoutController

type LogoutController struct {
	beego.Controller
}

func (*LogoutController) Logout

func (c *LogoutController) Logout()

@router / [get]

func (*LogoutController) URLMapping

func (c *LogoutController) URLMapping()

type MaintainController

type MaintainController struct {
	beego.Controller
}

func (*MaintainController) AddMaintain

func (c *MaintainController) AddMaintain()

@router / [post]

func (*MaintainController) DeleteMaintain

func (c *MaintainController) DeleteMaintain()

@router /:id [delete]

func (*MaintainController) GetAllMaintains

func (c *MaintainController) GetAllMaintains()

@router / [get]

func (*MaintainController) GetHosts

func (c *MaintainController) GetHosts()

@router /:id/hosts [get]

func (*MaintainController) URLMapping

func (c *MaintainController) URLMapping()

func (*MaintainController) UpdateMaintain

func (c *MaintainController) UpdateMaintain()

@router /:id [put]

type ManageController

type ManageController struct {
	beego.Controller
}

func (*ManageController) AddManage

func (c *ManageController) AddManage()

@router / [post]

func (*ManageController) DeleteManage

func (c *ManageController) DeleteManage()

@router /:id [delete]

func (*ManageController) GetAll

func (c *ManageController) GetAll()

@router / [get]

func (*ManageController) URLMapping

func (c *ManageController) URLMapping()

func (*ManageController) UpdateManage

func (c *ManageController) UpdateManage()

@router /:id [put]

type PlanController

type PlanController struct {
	beego.Controller
}

func (*PlanController) AddPlan

func (c *PlanController) AddPlan()

@router / [post]

func (*PlanController) AddReceiver

func (c *PlanController) AddReceiver()

@router /:planid/receivers/ [post]

func (*PlanController) DeletePlan

func (c *PlanController) DeletePlan()

@router /:planid [delete]

func (*PlanController) GetAllPlans

func (c *PlanController) GetAllPlans()

@router / [get]

func (*PlanController) GetAllReceiver

func (c *PlanController) GetAllReceiver()

@router /:planid/receivers/ [get]

func (*PlanController) URLMapping

func (c *PlanController) URLMapping()

func (*PlanController) UpdatePlan

func (c *PlanController) UpdatePlan()

@router /:planid [put]

type PromController

type PromController struct {
	beego.Controller
}

func (*PromController) AddProm

func (c *PromController) AddProm()

@router / [post]

func (*PromController) DeleteProm

func (c *PromController) DeleteProm()

@router /:id [delete]

func (*PromController) GetAllProms

func (c *PromController) GetAllProms()

@router / [get]

func (*PromController) URLMapping

func (c *PromController) URLMapping()

func (*PromController) UpdateProm

func (c *PromController) UpdateProm()

@router /:id [put]

type ReceiverController

type ReceiverController struct {
	beego.Controller
}

func (*ReceiverController) DeleteReceiver

func (c *ReceiverController) DeleteReceiver()

@router /:receiverid [delete]

func (*ReceiverController) URLMapping

func (c *ReceiverController) URLMapping()

func (*ReceiverController) UpdateReceiver

func (c *ReceiverController) UpdateReceiver()

@router /:receiverid [put]

type Rule

type Rule struct {
	Id    int64  `json:"id"`
	Expr  string `json:"expr"`
	Op    string `json:"op"`
	Value string `json:"value"`
	For   string `json:"for"`
	//Labels      map[string]string `json:"labels"`
	Summary     string `json:"summary"`
	Description string `json:"description"`
	PromId      int64  `json:"prom_id"`
	PlanId      int64  `json:"plan_id"`
}

type RuleController

type RuleController struct {
	beego.Controller
}

func (*RuleController) AddRule

func (c *RuleController) AddRule()

@router / [post]

func (*RuleController) DeleteRule

func (c *RuleController) DeleteRule()

@router /:ruleid [delete]

func (*RuleController) SendAllRules

func (c *RuleController) SendAllRules()

@router / [get]

func (*RuleController) URLMapping

func (c *RuleController) URLMapping()

func (*RuleController) UpdateRule

func (c *RuleController) UpdateRule()

@router /:ruleid [put]

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
}

type UserController

type UserController struct {
	beego.Controller
}

func (*UserController) AddUser

func (c *UserController) AddUser()

@router / [post]

func (*UserController) DeleteUsers

func (c *UserController) DeleteUsers()

@router /:id [delete]

func (*UserController) GetAllUser

func (c *UserController) GetAllUser()

@router / [get]

func (*UserController) URLMapping

func (c *UserController) URLMapping()

func (*UserController) UpdatePassword

func (c *UserController) UpdatePassword()

@router / [put]

type UserInfo

type UserInfo struct {
	Name         string `json:"name"`
	Display      string `json:"display"`
	Email        string `json:"email"`
	IsAdmin      bool   `json:"is_admin"`
	AccessToken  string `json:"access_token"`
	ClientID     string `json:"client_id"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
}

Jump to

Keyboard shortcuts

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