Documentation
¶
Index ¶
- type Command
- func CacheCommand() *Command
- func ConfigCommand() *Command
- func MakeControllerCommand(handler func(name string) error) *Command
- func MakeMiddlewareCommand(handler func(name string) error) *Command
- func MakeMigrationCommand(handler func(name string) error) *Command
- func MakeModelCommand(handler func(name string) error) *Command
- func MigrateCommand(handler func(direction string) error) *Command
- func NewCommand(use, short string, handler func(cmd *cobra.Command, args []string) error) *Command
- func ServeCommand(handler func(addr string) error) *Command
- type Kernel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command 命令构建器
func MakeControllerCommand ¶
MakeControllerCommand 创建控制器命令
func MakeMiddlewareCommand ¶
MakeMiddlewareCommand 创建中间件命令
func MakeMigrationCommand ¶
MakeMigrationCommand 创建迁移文件命令
func MakeModelCommand ¶
MakeModelCommand 创建模型命令
func MigrateCommand ¶
MigrateCommand 数据库迁移命令
func NewCommand ¶
NewCommand 创建新命令
func ServeCommand ¶
ServeCommand 启动服务器命令
func (*Command) WithBoolFlag ¶
WithBoolFlag 添加布尔标志
Click to show internal directories.
Click to hide internal directories.