bootstrap

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 15 Imported by: 0

README

kratos-bootstrap

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 应用引导启动

func DoBootstrap

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

DoBootstrap 执行引导

func NewApp

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

NewApp 创建应用程序

Types

type InitApp

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

Directories

Path Synopsis
api module
cache
redis Module
apollo Module
consul Module
etcd Module
kubernetes Module
nacos Module
polaris Module
aliyun Module
fluent Module
logrus Module
tencent Module
zap Module
oss
minio Module
consul Module
etcd Module
eureka Module
kubernetes Module
nacos Module
polaris Module
servicecomb Module
zookeeper Module

Jump to

Keyboard shortcuts

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