Documentation ¶
Index ¶
- type DependencyStore
- func (r *DependencyStore) CreateTemplates(dependenciesTemplate string) error
- func (r *DependencyStore) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
- func (r *DependencyStore) WriteDependencies(ts time.Time, dependencies []model.DependencyLink) error
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
Click to show internal directories.
Click to hide internal directories.