storage

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	ClusterID   string
	ClusterType types.ClusterType
	Type        string
	Namespace   string
	Name        string
	Parameters  map[string]string
	Field       []string
	Extra       map[string]string
	Data        interface{}
}

Param storage parameter definition

type Storage

type Storage interface {
	QueryDynamic(param *Param) ([]byte, error)
	GetClusters() ([]string, error)
	GetDynamicNs(param *Param) ([]byte, error)
	SaveMetric(param *Param) error
	QueryMetric(param *Param) ([]byte, error)
	DeleteMetric(param *Param) error
	GetDynamicWatcher(param *Param) (watcher *watch.Watcher, err error)
	GetMetricWatcher(param *Param) (watcher *watch.Watcher, err error)
}

Storage the interface definition of a storage

func New

func New(cfg *config.Config, rd *rdiscover.RDiscover) (s Storage, err error)

New create storage client

Jump to

Keyboard shortcuts

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