Versions in this module Expand all Collapse all v0 v0.2.0 Oct 13, 2026 Changes in this version type BlobStore + Open func(ctx context.Context, ref xfile.Ref) (io.ReadCloser, xfile.Info, error) v0.1.0 Oct 12, 2026 Changes in this version + func AssertFencedMutex(inst Instance) (action.FencedMutex, error) + func AssertIdempotencyStore(inst Instance) (action.IdempotencyStore, error) + func AssertJournal(inst Instance) (action.Journal, error) + func AssertKV(inst Instance) (action.CacheLayer[any], error) + func AssertMutex(inst Instance) (action.Mutex, error) + func AssertRateLimiter(inst Instance) (action.RateLimiter, error) + func AssertTxRunner(inst Instance) (action.TxRunner, error) + func BadRequest(msg string) error + func BadRequestf(format string, args ...any) error + func Conflict(msg string) error + func Conflictf(format string, args ...any) error + func Internal(msg string) error + func Internalf(format string, args ...any) error + func NotFound(msg string) error + func NotFoundf(format string, args ...any) error + func ParseDuration(s string, def time.Duration) (time.Duration, error) + func TooManyRequests(msg string) error + func Unavailable(msg string, cause error) error + func Unavailablef(cause error, format string, args ...any) error + type Backend interface + Kind func() Kind + Name func() string + Open func(opts map[string]string) (Instance, error) + type BlobStore interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) (data []byte, hit bool, err error) + Put func(ctx context.Context, key string, data []byte) error + func AssertBlob(inst Instance) (BlobStore, error) + type Declaration struct + Backend string + Kind Kind + Name string + Options map[string]string + Position Position + func (d Declaration) Open(reg *Registry) (Instance, error) + type Instance interface + Close func() error + Kind func() Kind + type Kind string + const KindBlob + const KindFencedLock + const KindIdem + const KindJournal + const KindKV + const KindLock + const KindRateLimit + const KindTx + func AllKinds() []Kind + func (k Kind) KernelInterface() string + type Position struct + File string + Line int + func (p Position) String() string + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Close(ctx context.Context) error + func (r *Registry) Lookup(name string, kind Kind) (Backend, bool) + func (r *Registry) LookupKind(name string) []Backend + func (r *Registry) MustRegister(b Backend) + func (r *Registry) Names() []string + func (r *Registry) Register(b Backend) error