Documentation
¶
Overview ¶
Package database provides the database interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepository ¶
type IRepository[T any] interface { List(ctx context.Context) ([]T, error) Get(ctx context.Context, id string) (T, error) Update(ctx context.Context, args T) error Create(ctx context.Context, args T) (string, error) Delete(ctx context.Context, id string) error }
IRepository provides the interface for the database.
Directories
¶
Path | Synopsis |
---|---|
Package es provides an implementation of the database using elasticsearch.
|
Package es provides an implementation of the database using elasticsearch. |
Package pg provides an implementation of the database using PostgreSQL.
|
Package pg provides an implementation of the database using PostgreSQL. |
Package redis provides an implementation of the database using redis.
|
Package redis provides an implementation of the database using redis. |
Click to show internal directories.
Click to hide internal directories.