bootstrap

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() *viper.Viper

func NewLogger

func NewLogger(option loggerOption) *zap.Logger

func NewLoggerOption

func NewLoggerOption(conf *viper.Viper) loggerOption

func NewPostgresql

func NewPostgresql(option postgresqlOption) *gorm.DB

func NewPostgresqlOption

func NewPostgresqlOption(conf *viper.Viper) postgresqlOption

func NewRedisOption

func NewRedisOption(conf *viper.Viper) redisoption

func NewRedisPool

func NewRedisPool(option redisoption) *redis.Client

func NewServerOption

func NewServerOption(conf *viper.Viper) serverOption

func Run

func Run(a *App, option serverOption)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(routes []router.IRoute, middlewares []middleware.IMiddleware) *App

Jump to

Keyboard shortcuts

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