client

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCClient

func NewGRPCClient(addr string, cfg GRPCConfig, r prometheus.Registerer) (deletion.CompactorClient, error)

NewGRPCClient supports only methods which are used for internal communication of Loki like loading delete requests and cache gen numbers for query time filtering.

func NewHTTPClient

func NewHTTPClient(addr string, cfg HTTPConfig) (deletion.CompactorClient, error)

NewHTTPClient creates a client which talks to compactor over HTTP. It uses provided TLS config which creating HTTP client.

Types

type GRPCConfig

type GRPCConfig struct {
	GRPCClientConfig grpcclient.Config `yaml:",inline"`
}

func (*GRPCConfig) RegisterFlags

func (cfg *GRPCConfig) RegisterFlags(f *flag.FlagSet)

RegisterFlags registers flags.

type HTTPConfig

type HTTPConfig struct {
	TLSEnabled bool             `yaml:"tls_enabled"`
	TLS        tls.ClientConfig `yaml:",inline"`
}

func (*HTTPConfig) RegisterFlags

func (cfg *HTTPConfig) RegisterFlags(f *flag.FlagSet)

RegisterFlags adds the flags required to config this to the given FlagSet.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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