Axiom Core
Reference

Acore Configuration Reference

API Reference for the axiom.acore language.

ProjectConfig

Metadata identifying the service.

FieldTypeDescription
idStringUnique project identifier.
versionStringSemantic version of the contract.

RetryPolicy

Defines how the Rust runtime handles failures.

FieldTypeDefault
maxAttemptsInt3
retryOnCodesListing<Int>502, 503, 504
retryOnTimeoutBooleantrue
backoffBackoffExponentialBackoff

Backoff Types

  • FixedBackoff: initialDelay: String
  • LinearBackoff: initialDelay: String, step: String
  • ExponentialBackoff: initialDelay: String, multiplier: Float

CachePolicy

Defines the client-side persistence strategy.

FieldTypeOptions
strategyStringnetwork_only, cache_first, network_first, stale_while_revalidate
ttlSecondsIntTime in seconds data remains valid in sled.

VariantConfig

FieldTypeDescription
includeListing<String>Glob patterns of routes to include (default *).
excludeListing<String>Glob patterns of routes to remove from the contract.

On this page