MCPcopy
hub / github.com/google/mangle / WithMaxIntervalsPerAtom

Function WithMaxIntervalsPerAtom

factstore/temporal.go:105–107  ·  view source on GitHub ↗

WithMaxIntervalsPerAtom sets the maximum intervals allowed per atom. Negative value disables the limit.

(limit int)

Source from the content-addressed store, hash-verified

103// WithMaxIntervalsPerAtom sets the maximum intervals allowed per atom.
104// Negative value disables the limit.
105func WithMaxIntervalsPerAtom(limit int) TemporalStoreOption {
106 return func(s *TemporalStore) { s.maxIntervalsPerAtom = limit }
107}
108
109// NewTemporalStore creates a new TemporalStore.
110func NewTemporalStore(opts ...TemporalStoreOption) *TemporalStore {

Calls

no outgoing calls