whlayout

package
v1.136.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package whlayout is where a webhook source's objects are kept in the managed-resources bucket (#1870): the raw segments in the Hive partition layout the raw table reads, and the names a replica gives the segments it writes. The receiver writes by it, the compactor and retention read by it, and the tables name its prefixes as their locations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompactedPrefix

func CompactedPrefix(source string) string

CompactedPrefix is the compacted table's external location. Nothing is written under it: every compacted window is registered at the directory of the resource that holds it, so this is only the table's nominal home.

func PartitionValues

func PartitionValues(start time.Time) (dt, hh, mm string)

PartitionValues are the dt, hour and minute values a window is filed under: the UTC date, hour and minute it starts at. A source compacting by the hour files every window under minute 00.

func RawPrefix

func RawPrefix(source string) string

RawPrefix is the directory the raw table's external location names.

func ReplicaSlug

func ReplicaSlug(replica string) string

ReplicaSlug renders a replica identity (host:port) as an object-key segment.

func SegmentKey

func SegmentKey(source string, start time.Time, writer string, seq uint64) string

SegmentKey is where one segment is written. writer identifies the process (its replica and start time) and seq is its counter, so two replicas, or one replica before and after a restart, never write the same key.

func SourcePrefix

func SourcePrefix(source string) string

SourcePrefix is where everything a source writes outside the resource store lives, in the managed-resources bucket.

func WindowPrefix

func WindowPrefix(source string, start time.Time) string

WindowPrefix is the raw directory of one window: the Hive partition layout the raw table's partitions are found by.

Types

This section is empty.

Jump to

Keyboard shortcuts

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