Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ApiArgument ¶
func NewApiArgument ¶
func NewApiArgument() *ApiArgument
func (*ApiArgument) ParseCli ¶
func (c *ApiArgument) ParseCli(ctx *cli.Context) error
type Argument ¶
type Argument struct { Verbose bool *ServerArgument *ClientArgument *ModelArgument *DocArgument *JobArgument *ApiArgument *FallbackArgument }
func GetGlobalArgs ¶
func GetGlobalArgs() *Argument
func NewArgument ¶
func NewArgument() *Argument
type ClientArgument ¶
type ClientArgument struct { // Common Param *CommonParam SliceParam *SliceParam Verbose bool Template string Branch string Cwd string GoSrc string GoPkg string GoPath string }
func NewClientArgument ¶
func NewClientArgument() *ClientArgument
func (*ClientArgument) ParseCli ¶
func (c *ClientArgument) ParseCli(ctx *cli.Context) error
type CommonParam ¶
type DialectorFunc ¶
type DocArgument ¶
type DocArgument struct { GoMod string PackagePrefix string IdlPath string IdlType string OutDir string Name string ModelDir string DaoDir string Verbose bool ProtoSearchPath []string ProtocOptions []string // options to pass through to protoc ThriftOptions []string // options to pass through to thriftgo for go flag GenBase bool }
func NewDocArgument ¶
func NewDocArgument() *DocArgument
func (*DocArgument) GetThriftgoOptions ¶
func (d *DocArgument) GetThriftgoOptions(prefix string) (string, error)
func (*DocArgument) Pack ¶
func (d *DocArgument) Pack() ([]string, error)
func (*DocArgument) ParseCli ¶
func (d *DocArgument) ParseCli(ctx *cli.Context) error
func (*DocArgument) Unpack ¶
func (d *DocArgument) Unpack(data []string) error
type FallbackArgument ¶
func NewFallbackArgument ¶
func NewFallbackArgument() *FallbackArgument
func (*FallbackArgument) ParseCli ¶
func (c *FallbackArgument) ParseCli(ctx *cli.Context) error
type JobArgument ¶ added in v0.1.2
func NewJobArgument ¶ added in v0.1.2
func NewJobArgument() *JobArgument
func (*JobArgument) ParseCli ¶ added in v0.1.2
func (j *JobArgument) ParseCli(ctx *cli.Context) error
type ModelArgument ¶
type ModelArgument struct { DSN string Type string Tables []string ExcludeTables []string OnlyModel bool OutPath string OutFile string WithUnitTest bool ModelPkgName string FieldNullable bool FieldSignable bool FieldWithIndexTag bool FieldWithTypeTag bool SQLDir string }
func NewModelArgument ¶
func NewModelArgument() *ModelArgument
func (*ModelArgument) ParseCli ¶
func (c *ModelArgument) ParseCli(ctx *cli.Context) error
type ServerArgument ¶
type ServerArgument struct { // Common Param *CommonParam Template string Branch string SliceParam *SliceParam Verbose bool Hex bool // add http listen for kitex Cwd string GoSrc string GoPkg string GoPath string }
func NewServerArgument ¶
func NewServerArgument() *ServerArgument
func (*ServerArgument) ParseCli ¶
func (s *ServerArgument) ParseCli(ctx *cli.Context) error
type SliceParam ¶
func (*SliceParam) WriteAnswer ¶
func (s *SliceParam) WriteAnswer(name string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.