Documentation ¶
Overview ¶
@Author: Ciusyan 2023/1/24
@Author: Ciusyan 2023/1/24
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HttpStartAop 使用者可以传入一个切面,不传就使用默认值 HttpStartAop protocol.StartFuncAop )
View Source
var RootCmd = &cobra.Command{ Use: "dousheng", Long: "极简版抖音Api", Short: "doushengApi", Example: "go run main.go [Commands] [Flags]", RunE: func(cmd *cobra.Command, args []string) error { if vers { fmt.Println(version.FullVersion()) } return cmd.Help() }, }
View Source
var StartCmd = &cobra.Command{ Use: "start", Long: "启动 API服务", Short: "启动 API服务", Example: "go run main start", RunE: func(cmd *cobra.Command, args []string) error { if err := conf.LoadConfigFromToml(configFile); err != nil { return err } if err := conf.LoadGlobalLogger(); err != nil { return err } if err := ioc.InitAllDependencies(); err != nil { return err } return managerStartAndStop() }, }
Functions ¶
func NewManager ¶
func NewManager() *manager
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.