esdependencyreader

package
v0.0.0-...-5deca64 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 defines Elasticsearch dependency store.

func NewDependencyStore

func NewDependencyStore(client esclient.ElasticsearchClient, logger *zap.Logger, indexPrefix, indexDateLayout string, maxDocCount int) *DependencyStore

NewDependencyStore creates dependency store.

func (*DependencyStore) CreateTemplates

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

CreateTemplates creates index templates for dependency index

func (*DependencyStore) GetDependencies

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

GetDependencies implements dependencystore.Reader

func (*DependencyStore) WriteDependencies

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

WriteDependencies implements dependencystore.Writer

Jump to

Keyboard shortcuts

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