gen

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkingDir string
	AppDir     string

	Version            string
	Style              string
	RemoveSuffix       bool
	ChangeReplaceTypes bool
)

Functions

func Gen

func Gen(_ *cobra.Command, _ []string) error

func GetApiServiceName

func GetApiServiceName(apiDirName string) string

func GetMainApiFilePath

func GetMainApiFilePath(apiDirName string) string

func GetProtoDir

func GetProtoDir(protoDirPath string) ([]os.DirEntry, error)

func GetProtoFilenames

func GetProtoFilenames(protoDirPath string) ([]string, error)

Types

type ApiFileTypes

type ApiFileTypes struct {
	Filepath string
	ApiSpec  spec.ApiSpec
	GenTypes []spec.Type

	Base bool
}

type HandlerFile

type HandlerFile struct {
	Group   string
	Handler string
	Path    string
}

type ImportLines

type ImportLines []string

func (ImportLines) String

func (l ImportLines) String() string

type JzeroApi

type JzeroApi struct {
	Wd                 string
	AppDir             string
	Module             string
	Style              string
	RemoveSuffix       bool
	ChangeReplaceTypes bool
}

func (*JzeroApi) Gen

func (ja *JzeroApi) Gen() error

type JzeroRpc

type JzeroRpc struct {
	Wd           string
	AppDir       string
	Module       string
	Style        string
	RemoveSuffix bool
}

func (*JzeroRpc) Gen

func (jr *JzeroRpc) Gen() error

type JzeroSql

type JzeroSql struct {
	Wd     string
	AppDir string
	Style  string
}

func (*JzeroSql) Gen

func (js *JzeroSql) Gen() error

type LogicFile

type LogicFile struct {
	Group   string
	Handler string
	Path    string
}

type RegisterLines

type RegisterLines []string

func (RegisterLines) String

func (l RegisterLines) String() string

type ServerFile

type ServerFile struct {
	Path string
}

Jump to

Keyboard shortcuts

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