cmd

package
v0.0.0-...-e2602fe Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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