Skip to content

Commit

Permalink
save 8 bytes per chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Jan 18, 2024
1 parent b0fd951 commit 389aed8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/sources/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type (

// Chunk contains data to be decoded and scanned along with context on where it came from.
type Chunk struct {
// Data is the data to decode and scan.
Data []byte

// SourceName is the name of the Source that produced the chunk.
SourceName string
// SourceID is the ID of the source that the Chunk originated from.
Expand All @@ -27,13 +30,12 @@ type Chunk struct {
// SecretID is the ID of the secret, if it exists.
// Only secrets that are being reverified will have a SecretID.
SecretID int64
// SourceType is the type of Source that produced the chunk.
SourceType sourcespb.SourceType

// SourceMetadata holds the context of where the Chunk was found.
SourceMetadata *source_metadatapb.MetaData
// SourceType is the type of Source that produced the chunk.
SourceType sourcespb.SourceType

// Data is the data to decode and scan.
Data []byte
// Verify specifies whether any secrets in the Chunk should be verified.
Verify bool
}
Expand Down

0 comments on commit 389aed8

Please sign in to comment.