nacos

package
v1.1.0-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

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
}

Adapter .

func NewAdapter

func NewAdapter(clusterName, addr, user, password string) *Adapter

NewAdapter .

func (*Adapter) SaveConfig

func (a *Adapter) SaveConfig(tenantName, groupName, dataID, content string) error

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
	Group   string
	Content string
}

ConfigItem .

type SearchMode

type SearchMode string

SearchMode .

var (
	// SearchModeBlur .
	SearchModeBlur SearchMode = "BLUR"
	// SearchModeAccurate .
	SearchModeAccurate SearchMode = "ACCURATE"
)

type SearchResponse

type SearchResponse struct {
	Total       int64         `json:"json:"totalCount"`
	Pages       int64         `json:"json:"pagesAvailable"`
	ConfigItems []*ConfigItem `json:"json:"pageItems"`
}

SearchResponse .

func (*SearchResponse) ToConfigCenterGroups

func (s *SearchResponse) ToConfigCenterGroups() *pb.Groups

ToConfigCenterGroups .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL