provider

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	// Identifier for the regional provider.
	ID did.DID
	// Region the provider operates in.
	Region string
	// When the provider record was created.
	CreatedAt time.Time
	// When the provider record was last updated.
	UpdatedAt time.Time
}

type Store

type Store interface {
	// Add creates a new provider record. It returns [store.ErrInvalidArgument]
	// if the ID is undef or the region is empty, and [store.ErrRecordExists] if
	// a record with the same ID already exists.
	Add(ctx context.Context, id did.DID, region string) error
	// GetByRegion retrieves the provider record for a given region. It returns
	// [store.ErrRecordNotFound] if no record exists for the specified region.
	GetByRegion(ctx context.Context, region string) (Record, error)
}

Directories

Path Synopsis
Package postgres provides a PostgreSQL-backed implementation of provider.Store.
Package postgres provides a PostgreSQL-backed implementation of provider.Store.

Jump to

Keyboard shortcuts

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