command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoCommand = &cobra.Command{
	Use:   "demo",
	Short: "demo for framework",
	Run: func(cmd *cobra.Command, args []string) {
		container := cmd.GetContainer()
		appServicde := container.MustMake(contract.AppKey).(contract.App)
		fmt.Println("app base folder[by demo]:", appServicde.BaseFolder())
	},
}

Functions

func AddKernelCommands

func AddKernelCommands(root *cobra.Command)

Types

type Proxy

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

Proxy serve启动的服务代理

func NewProxy

func NewProxy(container framework.Container) *Proxy

Jump to

Keyboard shortcuts

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