Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RecordExistsErrorName is the name given to an error where the record // already exists in the store. RecordExistsErrorName = "RecordExists" // RecordNotFoundErrorName is the name given to an error where the record // is not found in the store. RecordNotFoundErrorName = "RecordNotFound" // InvalidArgumentErrorName is the name given to an error where an argument // passed to a store operation is invalid. InvalidArgumentErrorName = "InvalidArgument" )
Variables ¶
View Source
var ( // ErrRecordExists is returned when a record already exists in the store. ErrRecordExists = errors.New(RecordExistsErrorName, "record already exists") // ErrRecordNotFound is returned when a record is not found in the store. ErrRecordNotFound = errors.New(RecordNotFoundErrorName, "record not found") // ErrInvalidArgument is returned when an argument passed to a store // operation is invalid. ErrInvalidArgument = errors.New(InvalidArgumentErrorName, "invalid argument") )
Functions ¶
Types ¶
type GetPageFunc ¶
type PaginationConfig ¶
type PaginationConfig struct {
// Cursor is an optional string that indicates where to start the page. This
// is typically the ID of the last item from the previous page.
Cursor *string
// Limit is an optional integer that specifies the maximum number of items to
// return in the page. If not provided, a default limit may be applied by the
// implementation.
Limit *int
}
type PaginationOption ¶
type PaginationOption func(cfg *PaginationConfig)
func WithCursor ¶
func WithCursor(cursor string) PaginationOption
func WithLimit ¶
func WithLimit(limit int) PaginationOption
Directories
¶
| Path | Synopsis |
|---|---|
|
postgres
Package postgres provides a PostgreSQL-backed implementation of accesskey.Store.
|
Package postgres provides a PostgreSQL-backed implementation of accesskey.Store. |
|
postgres
Package postgres provides a PostgreSQL-backed implementation of bucket.Store.
|
Package postgres provides a PostgreSQL-backed implementation of bucket.Store. |
|
postgres
Package postgres provides a PostgreSQL-backed implementation of delegation.Store.
|
Package postgres provides a PostgreSQL-backed implementation of delegation.Store. |
|
postgres
Package postgres provides a PostgreSQL-backed implementation of provider.Store.
|
Package postgres provides a PostgreSQL-backed implementation of provider.Store. |
|
postgres
Package postgres provides a PostgreSQL-backed implementation of tenant.Store.
|
Package postgres provides a PostgreSQL-backed implementation of tenant.Store. |
Click to show internal directories.
Click to hide internal directories.