Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { ClusterName string Addr string User string Password string // contains filtered or unexported fields }
Adapter .
func (*Adapter) SaveConfig ¶
SaveConfig .
func (*Adapter) SearchConfig ¶
func (a *Adapter) SearchConfig(mode SearchMode, tenantName, groupName, dataID string, page, pageSize int) (*SearchResponse, error)
SearchConfig .
type ConfigItem ¶
type ConfigItem struct { DataID string `json:"dataId"` Group string `json:"group"` Content string `json:"content"` }
ConfigItem .
type SearchMode ¶
type SearchMode string
SearchMode .
var ( // SearchModeBlur . SearchModeBlur SearchMode = "BLUR" // SearchModeAccurate . SearchModeAccurate SearchMode = "ACCURATE" )
type SearchResponse ¶
type SearchResponse struct { Total int64 `json:"totalCount"` Pages int64 `json:"pagesAvailable"` ConfigItems []*ConfigItem `json:"pageItems"` }
SearchResponse .
func (*SearchResponse) ToConfigCenterGroups ¶
func (s *SearchResponse) ToConfigCenterGroups() *pb.Groups
ToConfigCenterGroups .
Click to show internal directories.
Click to hide internal directories.