Documentation ¶
Index ¶
- Constants
- func WithResMgr(res *supbres.SupbResources) option
- type Index
- func (r *Index) Close() error
- func (r *Index) GetList() []*Item
- func (r *Index) GetSwitch(iKey ItemKey) map[string]string
- func (r *Index) GraphAdd(iKey ItemKey) error
- func (r *Index) GraphDelete(iKey ItemKey) error
- func (r *Index) InitFlags(flags *pflag.FlagSet)
- func (r *Index) InitViper(viper *viper.Viper)
- func (r *Index) Initialize(opts ...option)
- func (r *Index) OptionConfig(opts ...option)
- func (r *Index) ReSortList(id []int)
- func (r *Index) SwitchOff(key ItemKey, mod string) error
- func (r *Index) SwitchOn(key ItemKey, mod string) error
- func (r *Index) TypeKeyPair(page, key string) (ItemKey, error)
- func (r *Index) TypeKeyPairRelationShip(page string, key, kind, name string) (ItemKey, error)
- func (r *Index) UpdateList(items []*Item)
- func (r *Index) ViperConfig(viper *viper.Viper)
- type Item
- type ItemKey
- type Modules
Constants ¶
View Source
const ( TypeStrategy = "dynamic.strategy" TypeApplication = "dynamic.application" TypeRelationShip = "relationship" ModsStrategy1 = "strategy.applications" ModsStrategy2 = "strategy.metrics" ModsStrategy3 = "strategy.logs" ModsStrategy4 = "strategy.traces" ModsStrategy5 = "strategy.common" ModsStrategy6 = "strategy.custom" ModsApplication1 = "application.devices" ModsApplication2 = "application.metrics" ModsApplication3 = "application.logs" ModsApplication4 = "application.trace" ModsApplication5 = "application.common" ModsApplication6 = "application.custom" )
Variables ¶
This section is empty.
Functions ¶
func WithResMgr ¶
func WithResMgr(res *supbres.SupbResources) option
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) GraphDelete ¶
func (*Index) Initialize ¶
func (r *Index) Initialize(opts ...option)
func (*Index) OptionConfig ¶
func (r *Index) OptionConfig(opts ...option)
func (*Index) ReSortList ¶
func (*Index) TypeKeyPairRelationShip ¶
func (*Index) UpdateList ¶
func (*Index) ViperConfig ¶
type Item ¶
type Item struct { Key string `json:"object.key"` Page string `json:"object.page"` Kind string `json:"object.relationship.kind"` Name string `json:"object.name"` PageName string `json:"object.page.name"` DetailModsSelf string `json:"object.details.self"` DetailModsLogs string `json:"object.details.logs"` DetailModsMetrics string `json:"object.details.metrics"` DetailModsTrace string `json:"object.details.trace"` DetailModsCommon string `json:"object.details.common"` DetailModsCustom string `json:"object.details.custom"` }
Click to show internal directories.
Click to hide internal directories.