Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
}
Click to show internal directories.
Click to hide internal directories.