 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( ScopeGlobal = "global" ScopeTeam = "team" ScopeService = "service" PublishStatusOnline = "online" PublishStatusOffline = "offline" PublishStatusUpdate = "update" PublishStatusDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterOption ¶
type LogItem ¶
type LogItem struct {
	ID            string         `json:"id"`
	Service       auto.Label     `json:"service" aolabel:"service"`
	Method        string         `json:"method"`
	Url           string         `json:"url"`
	RemoteIP      string         `json:"remote_ip"`
	Consumer      auto.Label     `json:"consumer" aolabel:"service"`
	Authorization auto.Label     `json:"authorization" aolabel:"service_authorization"`
	RecordTime    auto.TimeLabel `json:"record_time"`
}
    type Strategy ¶
type Strategy struct {
	Id       string      `json:"id"`
	Name     string      `json:"name"`
	Priority int         `json:"priority"`
	Desc     string      `json:"desc"`
	Filters  []*Filter   `json:"filters"`
	Config   interface{} `json:"config"`
	IsDelete bool        `json:"is_delete"`
}
    func ToStrategy ¶
type StrategyItem ¶
type StrategyItem struct {
	Id             string         `json:"id"`
	Name           string         `json:"name"`
	Priority       int            `json:"priority"`
	Desc           string         `json:"desc"`
	Filters        string         `json:"filters"`
	Updater        auto.Label     `json:"updater" aolabel:"user"`
	UpdateTime     auto.TimeLabel `json:"update_time"`
	ProcessedTotal int64          `json:"processed_total"`
	PublishStatus  string         `json:"publish_status"`
	IsStop         bool           `json:"is_stop"`
	IsDelete       bool           `json:"is_delete"`
}
    func ToStrategyItem ¶
 Click to show internal directories. 
   Click to hide internal directories.