service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Servers   []string
	DbClients []string
)
View Source
var CmdService = &cobra.Command{
	Use:     "service [name]",
	Aliases: []string{"svc"},
	Short:   "create a new service scaffold",
	Long:    "Create a new microservice inside the current workspace. Example: gow new service user",
	Args:    cobra.ExactArgs(1),
	Run:     run,
}

CmdService represents the service command

Functions

func Generate

func Generate(ctx context.Context, opts GeneratorOptions) error

Generate 生成服务脚手架代码

func NewGenerator

func NewGenerator() *pkgService.Generator

NewGenerator 创建服务代码生成器

Types

type GeneratorOptions

type GeneratorOptions = pkgService.GeneratorOptions

GeneratorOptions 服务生成器选项(委托给 pkg/service)

Jump to

Keyboard shortcuts

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