Documentation
¶
Index ¶
- type Option
- type Repo
- func (r Repo) Close() error
- func (r Repo) Find(ctx context.Context, uuid uuid.UUID) (eh.Entity, error)
- func (r Repo) FindAll(ctx context.Context) ([]eh.Entity, error)
- func (r Repo) InnerRepo(ctx context.Context) eh.ReadRepo
- func (r Repo) Remove(ctx context.Context, id uuid.UUID) error
- func (r Repo) Save(ctx context.Context, entity eh.Entity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is an option setter used to configure creation.
func WithTableCreate ¶
func WithTableCreate() Option
func WithTableReset ¶
func WithTableReset() Option
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo can be an eventhorizon.ReadRepo, eventhorizon.WriteRepo or eventhorizon.ReadWriteRepo for Bun. Acts as a base/abstract for your custom entity implementation.
Click to show internal directories.
Click to hide internal directories.