server

package
v0.0.0-...-1d5bf40 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvProvider = wire.NewSet(
	wire.FieldsOf(new(*types.Env), "Docker"),
	wire.FieldsOf(new(*types.Env), "AppConf"),
)

Functions

func NewApp

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

NewApp returns new grpc 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 writes the banner into given writer

Types

type SlogAdapter

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

func (*SlogAdapter) Log

func (l *SlogAdapter) Log(level log.Level, keyvals ...interface{}) error

Directories

Path Synopsis
dst
dst

Jump to

Keyboard shortcuts

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