add

package
v0.0.0-...-6a89294 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdAdd = &cobra.Command{
	Use:   "add",
	Short: "Add a proto API template",
	Long:  "Add a proto API template. Example: tkeel-tool add helloworld/v1/hello.proto",
	Run:   run,
}

CmdAdd represents the add command.

Functions

This section is empty.

Types

type APIProto

type APIProto struct {
	Name        string
	Path        string
	Service     string
	Package     string
	GoPackage   string
	JavaPackage string
}

APIProto is a proto generator.

func (*APIProto) Generate

func (p *APIProto) Generate() error

Generate generate a proto template.

type ErrorProto

type ErrorProto struct {
	Name        string
	Path        string
	Package     string
	GoPackage   string
	JavaPackage string
}

func (*ErrorProto) Generate

func (p *ErrorProto) Generate() error

type Proto

type Proto interface {
	Generate() error
}

Jump to

Keyboard shortcuts

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