insightstore

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(fs fileStore, chunkMaxCount int, rd redis.Redis, logger *zap.Logger) insight.Store

Types

type DeploymentBlockMetadata added in v0.40.0

type DeploymentBlockMetadata struct {
	BlockID       string                     `json:"block_id"`
	ChunkMetadata []*DeploymentChunkMetadata `json:"chunk_metadata"`
}

func (*DeploymentBlockMetadata) FindChunks added in v0.40.0

func (m *DeploymentBlockMetadata) FindChunks(from, to int64) []DeploymentChunkMetadata

type DeploymentChunk added in v0.40.0

type DeploymentChunk struct {
	ChunkID     string                    `json:"chunk_id"`
	Deployments []*insight.DeploymentData `json:"deployments"`
}

func (*DeploymentChunk) FindDeployments added in v0.40.0

func (c *DeploymentChunk) FindDeployments(from, to int64) []*insight.DeploymentData

func (*DeploymentChunk) Size added in v0.40.0

func (c *DeploymentChunk) Size() (int64, error)

type DeploymentChunkMetadata added in v0.40.0

type DeploymentChunkMetadata struct {
	ChunkID      string `json:"chunk_id"`
	ChunkIndex   int    `json:"chunk_index"`
	MinTimestamp int64  `json:"min_timestamp"`
	MaxTimestamp int64  `json:"max_timestamp"`
	Count        int    `json:"count"`
	Completed    bool   `json:"completed"`
}

Jump to

Keyboard shortcuts

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