nacos

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 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
	// contains filtered or unexported fields
}

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 `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 .

Jump to

Keyboard shortcuts

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