server

package
v0.0.0-...-0eef1dd Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvProvider = wire.NewSet(
	wire.FieldsOf(new(*types.Env), "App"),
	wire.FieldsOf(new(*types.Env), "Ent"),
	wire.FieldsOf(new(*types.Env), "Redis"),
	wire.FieldsOf(new(*types.Env), "Router"),
	wire.FieldsOf(new(*types.Env), "Email"),
	wire.FieldsOf(new(*conf.App), "Jwt"),
	wire.FieldsOf(new(*conf.App), "Email"),
)

EnvProvider only use for wire injection

Functions

func NewApp

func NewApp(ctx context.Context, appConf *conf.App) (*ginx.Server, error)

NewApp returns a new http app server

func NewLogger

func NewLogger(option conf.Log) (*logx.Logger, error)

NewLogger returns a new app logger with the given options

func PrintBanner

func PrintBanner(writer io.Writer) error

PrintBanner prints the banner into given writer

Types

This section is empty.

Directories

Path Synopsis
api
mq
pkg

Jump to

Keyboard shortcuts

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