insightstore

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadChunksFromCache

func LoadChunksFromCache(cache cache.Cache, projectID, appID string, kind model.InsightMetricsKind, step model.InsightStep, from time.Time, count int) (insight.Chunks, error)

func PutChunksToCache

func PutChunksToCache(cache cache.Cache, chunks insight.Chunks) error

Types

type Store

type Store interface {
	LoadChunks(
		ctx context.Context,
		projectID, appID string,
		kind model.InsightMetricsKind,
		step model.InsightStep,
		from time.Time,
		count int,
	) (insight.Chunks, error)
	PutChunk(ctx context.Context, chunk insight.Chunk) error
	LoadMilestone(ctx context.Context) (*insight.Milestone, error)
	PutMilestone(ctx context.Context, m *insight.Milestone) error

	LoadApplicationCounts(ctx context.Context, projectID string) (*insight.ApplicationCounts, error)
	PutApplicationCounts(ctx context.Context, projectID string, counts insight.ApplicationCounts) error
}

func NewStore

func NewStore(fs filestore.Store) Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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