Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRepository ¶
func SetRepository(rep Repository)
Types ¶
type DeleteParams ¶
type Item ¶
type Item struct { Id int64 `json:"id"` OrgId int64 `json:"orgId"` DashboardId int64 `json:"dashboardId"` PanelId int64 `json:"panelId"` CategoryId int64 `json:"categoryId"` RegionId int64 `json:"regionId"` Type ItemType `json:"type"` Title string `json:"title"` Text string `json:"text"` Metric string `json:"metric"` AlertId int64 `json:"alertId"` UserId int64 `json:"userId"` PrevState string `json:"prevState"` NewState string `json:"newState"` Epoch int64 `json:"epoch"` Data *simplejson.Json `json:"data"` }
type PostParams ¶ added in v4.3.0
type Repository ¶
type Repository interface { Save(item *Item) error Update(item *Item) error Find(query *ItemQuery) ([]*Item, error) Delete(params *DeleteParams) error }
func GetRepository ¶
func GetRepository() Repository
Click to show internal directories.
Click to hide internal directories.