cmd

package
v0.0.0-...-413c324 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultShutdownTimeout = 30 * time.Second

DefaultShutdownTimeout default shutdown timeout duration DefaultShutdownTimeout 默认关闭超时时间

Variables

This section is empty.

Functions

func BootstrapLogger

func BootstrapLogger() *zap.Logger

BootstrapLogger gets the bootstrap stage logger BootstrapLogger 获取启动阶段日志器

func Execute

func Execute(efs embed.FS, c string)

Execute executes the root command Execute 执行根命令

Types

type Server

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

func NewServer

func NewServer(runEnv *runFlags) (*Server, error)

func (*Server) GetApp

func (s *Server) GetApp() *internalApp.App

GetApp gets App Container GetApp 获取 App Container

func (*Server) GetConfig

func (s *Server) GetConfig() *internalApp.AppConfig

GetConfig gets app configuration GetConfig 获取应用配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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