dependencystore

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyStore

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

DependencyStore handles all queries and insertions to ElasticSearch dependencies

func NewDependencyStore

func NewDependencyStore(p Params) *DependencyStore

NewDependencyStore returns a DependencyStore

func (*DependencyStore) CreateTemplates added in v1.18.1

func (s *DependencyStore) CreateTemplates(dependenciesTemplate string) error

CreateTemplates creates index templates.

func (*DependencyStore) GetDependencies

func (s *DependencyStore) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)

GetDependencies returns all interservice dependencies

func (*DependencyStore) WriteDependencies

func (s *DependencyStore) WriteDependencies(ts time.Time, dependencies []model.DependencyLink) error

WriteDependencies implements dependencystore.Writer#WriteDependencies.

type Params added in v1.58.0

type Params struct {
	Client              func() es.Client
	Logger              *zap.Logger
	IndexPrefix         config.IndexPrefix
	IndexDateLayout     string
	MaxDocCount         int
	UseReadWriteAliases bool
}

DependencyStoreParams holds constructor parameters for NewDependencyStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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