start

package
v0.0.0-...-48fb7be Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

grpc开启服务与grpc初始化

Index

Constants

This section is empty.

Variables

View Source
var AppRouters = make([]func(), 0)
View Source
var (
	Cmd = &cobra.Command{
		Use:     "start",
		Short:   "start application with config file",
		Example: "eg. orange start -c resources/config.yaml",
		Run: func(cmd *cobra.Command, args []string) {
			defer func() {
				if err := recover(); err != nil {
					slog.Error("panic err " + fmt.Sprintf("%v", err) + " \r\n stack:" + stackUtil.GetStack())
				}
			}()
			startApplication()
		},
	}
)

Functions

func InitRouter

func InitRouter()

Types

This section is empty.

Jump to

Keyboard shortcuts

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