Documentation
¶
Index ¶
- func AppendCtx(parent context.Context, attr slog.Attr) context.Context
- func Connect(config DBConfig) (*sql.DB, error)
- func Echo() *echo.Echo
- func InitAPI()
- func Migrate(config DBConfig, db *sql.DB) error
- func SetLogger(config LoggerConfig)
- func Start(port string)
- type DBConfig
- type Handler
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCtx ¶
AppendCtx adds an slog attribute to the provided context so that it will be included in any Record created with such context
func SetLogger ¶
func SetLogger(config LoggerConfig)
Types ¶
type LoggerConfig ¶
Click to show internal directories.
Click to hide internal directories.