Documentation
¶
Overview ¶
Package repository wraps shared components to work with repositories
Index ¶
- func NewPatchQuery(opts ...PatchOption) *patchQuery
- func WithLockingCtx(ctx context.Context, lockLevel LockLevel, lockModes ...LockMode) context.Context
- type Creator
- type CreatorBatch
- type DeleteType
- type Deleter
- type Getter
- type Lister
- type Lock
- type LockLevel
- type LockMode
- type PatchOption
- type PatchQuery
- type Patcher
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPatchQuery ¶
func NewPatchQuery(opts ...PatchOption) *patchQuery
Types ¶
type CreatorBatch ¶
type Lock ¶
Lock defines the interface for locking mechanisms.
func LockFromCtx ¶
LockFromCtx retrieves the lock from the context.
type PatchOption ¶
type PatchOption func(pq *patchQuery)
func PatchField ¶
func PatchField(name string, value any) PatchOption
func PatchSearchOpts ¶
func PatchSearchOpts(opts ...search.Option) PatchOption
func WithPatchFields ¶
func WithPatchFields(patchFields map[string]any) PatchOption
func WithPatchQuery ¶
func WithPatchQuery(query PatchQuery) PatchOption
func WithPatchQueryOpts ¶
func WithPatchQueryOpts(opts ...PatchOption) PatchOption
type PatchQuery ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package repositorytest provides test helpers for the generic repository package
|
Package repositorytest provides test helpers for the generic repository package |
Click to show internal directories.
Click to hide internal directories.