Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Materialization ¶
type Materialization struct {
MaterializationID string
SnapshotID string
Strategy Strategy
ContentHash string
Bytes int64
CreatedAt time.Time
}
Materialization is the actual representation delivered to a consumer, derived from a Snapshot.
type Materializer ¶
type RawMaterializer ¶
type RawMaterializer struct{}
RawMaterializer is the only strategy in v0.1: pass-through, deterministic.
func (RawMaterializer) Materialize ¶
type Store ¶
type Store interface {
Create(ctx context.Context, m Materialization) error
Get(ctx context.Context, id string) (Materialization, error)
// GetBySnapshot is the dedup lookup: a materialization is reused for a
// given (snapshot, strategy) pair rather than rebuilt on every resolve.
GetBySnapshot(ctx context.Context, snapshotID string, strategy Strategy) (Materialization, bool, error)
}
Click to show internal directories.
Click to hide internal directories.