Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTaskNotFound = errors.New("task not found")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface {
CreateTask(ctx context.Context, title string) (*Task, error)
ListTasks(ctx context.Context) ([]*Task, error)
DeleteTask(ctx context.Context, id int64) error
GenerateError(ctx context.Context) error
}
DB represents a database for tasks.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
example
command
|
|
|
internal
|
|
|
cmd/otel-sort
command
Binary otel-sort sorts OpenTelemetry registry bundles by group ID.
|
Binary otel-sort sorts OpenTelemetry registry bundles by group ID. |
|
db
Package entdb provides helper for creating pgx dabase for ent.
|
Package entdb provides helper for creating pgx dabase for ent. |
|
oas
Code generated by ogen, DO NOT EDIT.
|
Code generated by ogen, DO NOT EDIT. |
|
otel-iface-gen
command
|
|
|
semconv
Package semconv defines semantic conventions for OpenTelemetry, like log or trace attributes.
|
Package semconv defines semantic conventions for OpenTelemetry, like log or trace attributes. |
|
service
Package service implements the business logic of the application.
|
Package service implements the business logic of the application. |
Click to show internal directories.
Click to hide internal directories.