bootstrap

package
v0.0.0-...-f0a7105 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Service = config.NewServiceInfo(
		"",
		"1.0.0",
		"",
	)
)

Functions

func Bootstrap

func Bootstrap(initApp InitApp, serviceName, version *string)

Bootstrap application boot startup

func DoBootstrap

func DoBootstrap(serviceInfo *config.ServiceInfo) (*conf.Bootstrap, log.Logger, kratosregistry.Registrar)

DoBootstrap execute boot

func NewApp

func NewApp(ll log.Logger, rr kratosregistry.Registrar, srv ...transport.Server) *kratos.App

NewApp create application

Types

type InitApp

type InitApp func(logger log.Logger, registrar kratosregistry.Registrar, bootstrap *conf.Bootstrap) (*kratos.App, func(), error)

Directories

Path Synopsis
cache
zap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳