promclient

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(
	settings backend.DataSourceInstanceSettings,
	jsonData map[string]interface{},
	clientProvider httpclient.Provider,
	cfg *setting.Cfg,
	features featuremgmt.FeatureToggles,
	log log.Logger,
) *Provider

func (*Provider) GetClient

func (p *Provider) GetClient(headers map[string]string) (apiv1.API, error)

type ProviderCache

type ProviderCache struct {
	// contains filtered or unexported fields
}

func NewProviderCache

func NewProviderCache(p promClientProvider) (*ProviderCache, error)

func (*ProviderCache) GetClient

func (c *ProviderCache) GetClient(headers map[string]string) (apiv1.API, error)

Jump to

Keyboard shortcuts

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