 Documentation
      ¶
      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:"panelId"`
	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 ItemQuery ¶
type Repository ¶
type Repository interface {
	Save(item *Item) error
	Find(query *ItemQuery) ([]*Item, error)
	Delete(params *DeleteParams) error
}
    func GetRepository ¶
func GetRepository() Repository
       Source Files
      ¶
      Source Files
      ¶
    
- annotations.go
 Click to show internal directories. 
   Click to hide internal directories.