Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "bff" // Name is the name of the compiled software. Version string // Version is the version of the compiled software. ID, _ = os.Hostname() // 主机信息 )
go build -ldflags "-X cmd.Version=x.y.z"
View Source
var ( Main = gcmd.Command{ Name: "main", Usage: "main <sub-command>", Brief: "this is main command, please specify a sub command", Func: func(ctx context.Context, parser *gcmd.Parser) (err error) { app, cleanup, err := wireApp( ctx, svcInfo, pubCfg.Discovery, pubCfg.Log, pubCfg.Adapter, bffCfg.Http, bffCfg.Auth, ) if err != nil { panic(err) } defer cleanup() if err := app.Run(); err != nil { panic(err) } return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.