bootstrap

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is bootstrap providers.

Functions

func NewCli

func NewCli(cmd *route.Cli) *cli.Command

func NewConf

func NewConf() (*koanf.Koanf, error)

func NewCron

func NewCron(conf *koanf.Koanf, log *slog.Logger, jobs *job.Jobs) (*cron.Cron, error)

func NewDB

func NewDB(conf *koanf.Koanf, log *slog.Logger) (*gorm.DB, error)

func NewHttp

func NewHttp(conf *koanf.Koanf, r *chi.Mux) (*hlfhr.Server, error)

func NewLog

func NewLog(conf *koanf.Koanf) *slog.Logger

func NewMigrate

func NewMigrate(db *gorm.DB) *gormigrate.Gormigrate

func NewQueue

func NewQueue() *queue.Queue

func NewRouter

func NewRouter(middlewares *middleware.Middlewares, http *route.Http, ws *route.Ws) (*chi.Mux, error)

func NewSession

func NewSession(conf *koanf.Koanf, db *gorm.DB) (*sessions.Manager, error)

func NewValidator

func NewValidator(db *gorm.DB) *validate.Validation

NewValidator just for register global rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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