Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Main = cmd.GenMain( gcmd.Command{ Name: "main", Usage: "./main", Brief: "博客服务管理工具", Description: `功能包括:微服务启动(默认),消费者启动,xxljob定时任务等`, Arguments: append(cmd.CommonArguments, []gcmd.Argument{}...), Func: cmd.GetGrpcCmdFunc( cmd.GetGrpcMiddleware(), func(server *grpcx.GrpcServer) { blog.Register(server) }, ), }, &gcmd.Command{ Name: "batDeleteBlogConsumer", Usage: "./main batDeleteBlogConsumer", Brief: "批量删除博客的消费者", Func: cmd.GetConsumeCmdFunc( "batDeleteBlogConsumer", cmd.GetGrpcMiddleware(), service.Blog().BatDeleteConsumer, ), }, &gcmd.Command{ Name: "xxljob", Usage: "./main xxljob", Brief: "定时任务", Func: cmd.GetXxljobCmdFunc( cmd.GetGrpcMiddleware(), map[string]xxl.TaskFunc{ "stats": service.Blog().Stats, }, ), }, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.