Documentation
¶
Index ¶
- func Fatal(msgs ...interface{})
- func FatalOnError(err error)
- func FatalOnErrorf(err error, format string, args ...interface{})
- type App
- func (a *App) GetInnerHttpServer() *exthttp.MuxServer
- func (a *App) GinServer(opts ...exthttp.OptionFunc) *gin.Engine
- func (a *App) GrpcServer(opts ...extgrpc.Option) *extgrpc.Server
- func (a *App) InitFromCmd(cmd *cobra.Command, name string)
- func (a *App) Run(cmd *cobra.Command)
- func (a *App) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalOnError ¶
func FatalOnError(err error)
func FatalOnErrorf ¶
Types ¶
type App ¶
type App struct {
App string
Logger *log.Logger
Reg prometheus.Registerer
Registry *prometheus.Registry
Cmd *cobra.Command
G *run.Group
HttpProber *prober.HTTPProbe
StatusProber prober.Probe // grpc or http
// contains filtered or unexported fields
}
func (*App) GetInnerHttpServer ¶
GetInnerHttpServer should call after InitFromCmd.
Click to show internal directories.
Click to hide internal directories.