Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Starter)
Option configures a Starter.
func WithAutoMigrateModels ¶
WithAutoMigrateModels specifies models to auto-migrate on database start.
type Starter ¶
type Starter struct {
// contains filtered or unexported fields
}
Starter auto-configures the DB connection when gorm.io/driver/sqlite is available.
func New ¶
func New(cfg helixconfig.Loader, opts ...Option) *Starter
New creates a Starter using the provided configuration loader.
Click to show internal directories.
Click to hide internal directories.