app

package
v0.0.0-...-edcddae Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWriteSyncer

func GetWriteSyncer(logName string) zapcore.WriteSyncer

func InitDatabase

func InitDatabase(dbCfg utils.Database) (*sqlx.DB, error)

func SetupLogger

func SetupLogger() *zap.Logger

Types

type Controllers

type Controllers struct {
	DB *sqlx.DB
}

func InitControllers

func InitControllers(ctx context.Context, db *sqlx.DB) *Controllers

type WriteSyncer

type WriteSyncer struct {
	io.Writer
}

func (WriteSyncer) Sync

func (ws WriteSyncer) Sync() error

Jump to

Keyboard shortcuts

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