Documentation ¶
Index ¶
Constants ¶
View Source
const ( Proto = "proto" Bean = "bean" Cmd = "cmd" New = "new" Pprof = "pprof" Fbs = "fbs" Redis = "redis" Client = "client" Config = "config" Model = "model" Worker = "worker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Proto struct { New string `help:"Create a new proto file: <path>/<filename.proto>"` Generate bool `help:"Generate proto all files"` } `cmd:"" help:"Generate protobuf messages and grpc services"` Fbs struct { New string `help:"Create a new flatbuffers file: <path>/<filename.fbs>"` Generate bool `help:"Generate flatbuffers all files"` } `cmd:"" help:"Generate flatbuffers messages"` Bean struct { Generate bool `help:"Generate bean container"` } `cmd:"" help:"Generate bean container"` Cmd struct { New string `help:"Create a new cmd package: <cmd-name>"` Build []string `help:"Build a cmd package: <cmd-name>,[<options>...]"` Run []string `help:"Run a cmd package: <cmd-name>,[<args>...]"` } `cmd:"" help:"managing cmd package"` New struct { Init string `help:"Initialize a new project"` } `cmd:"" help:"Initialize a new project"` Pprof struct { Http1 string `help:"Generate http1 pprof server: <addr>"` Http2 string `help:"Generate http2 pprof server: <addr>"` Http3 string `help:"Generate http3 pprof server: <addr>"` } `cmd:"" help:"Generate pprof server"` // Redis struct { // New string `help:"Create a new redis type: <path+name>"` // Generate bool `help:"Generate redis data types"` // } `cmd:"" help:"Generate redis data type"` Client struct { Rueidis string `help:"Generate redis client(rueidis): <addr>"` GoRedis string `help:"Generate redis client(go-redis): <addr>"` Nats string `help:"Generate nats client: <addr>"` } `cmd:"" help:"Generate client"` Worker struct { Ants []string `help:"Generate goroutine pool worker(ants): <pool-name>,<func-param>..."` } `cmd:"" help:"Generate worker"` Model struct { Generate string `help:"Generate json/yaml model: <path+name>"` New string `help:"Create a new model: <path+name>"` } `cmd:"" help:"Generate model"` Config struct { New string `help:"Create a new jsonnet config file: <path+name>"` Jsonnet string `help:"Generate jsonnet config: <path+name>"` } `cmd:"" help:"Generate config"` }
Click to show internal directories.
Click to hide internal directories.