gobusx

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SetupBus = []any{
	SetupDatabase,
	CreateBus,
}
View Source
var SetupDatabase = SetupDatabaseFactory("bus-database")

Functions

func CreateBus

func CreateBus(db DB) (bus.Bus, error)

func Migrate

func Migrate(ctx context.Context, db DB) (*migrator, error)

func SetupDatabaseFactory

func SetupDatabaseFactory(name string) func(ctx context.Context, lc *lifecycle.Lifecycle, conf *Config) (DB, error)

Types

type Config

type Config struct {
	Database gormx.DatabaseConfig `confx:"database"`
}

type DB

type DB *gorm.DB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL