Documentation ¶
Index ¶
- Constants
- func ModelDuration(flags *kingpin.FlagClause) *model.Duration
- func RegisterCommonObjStoreFlags(cmd FlagClause, suffix string, required bool, extraDesc ...string) *extflag.PathOrContent
- func RegisterCommonTracingFlags(app FlagClause) *extflag.PathOrContent
- func RegisterGRPCFlags(cmd FlagClause) (grpcBindAddr *string, grpcGracePeriod *model.Duration, grpcTLSSrvCert *string, ...)
- func RegisterHTTPFlags(cmd FlagClause) (httpBindAddr *string, httpGracePeriod *model.Duration, httpTLSConfig *string)
- func RegisterRequestLoggingFlags(app FlagClause) *extflag.PathOrContent
- func RegisterSelectorRelabelFlags(cmd FlagClause) *extflag.PathOrContent
- type App
- type AppClause
- type FlagClause
- type SetupFunc
Constants ¶
View Source
const UsageTemplate = `` /* 1202-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ModelDuration ¶ added in v0.17.0
func RegisterCommonObjStoreFlags ¶ added in v0.17.0
func RegisterCommonObjStoreFlags(cmd FlagClause, suffix string, required bool, extraDesc ...string) *extflag.PathOrContent
RegisterCommonObjStoreFlags register flags to specify object storage configuration.
func RegisterCommonTracingFlags ¶ added in v0.17.0
func RegisterCommonTracingFlags(app FlagClause) *extflag.PathOrContent
RegisterCommonTracingFlags registers flags to pass a tracing configuration to be used with OpenTracing.
func RegisterGRPCFlags ¶ added in v0.17.0
func RegisterGRPCFlags(cmd FlagClause) ( grpcBindAddr *string, grpcGracePeriod *model.Duration, grpcTLSSrvCert *string, grpcTLSSrvKey *string, grpcTLSSrvClientCA *string, grpcMaxConnectionAge *time.Duration, )
RegisterGRPCFlags registers flags commonly used to configure gRPC servers with.
func RegisterHTTPFlags ¶ added in v0.17.0
func RegisterHTTPFlags(cmd FlagClause) (httpBindAddr *string, httpGracePeriod *model.Duration, httpTLSConfig *string)
RegisterCommonObjStoreFlags register flags commonly used to configure http servers with.
func RegisterRequestLoggingFlags ¶ added in v0.20.0
func RegisterRequestLoggingFlags(app FlagClause) *extflag.PathOrContent
RegisterRequestLoggingFlags registers flags to pass a request logging configuration to be used.
func RegisterSelectorRelabelFlags ¶ added in v0.17.0
func RegisterSelectorRelabelFlags(cmd FlagClause) *extflag.PathOrContent
RegisterSelectorRelabelFlags register flags to specify relabeling configuration selecting blocks to process.
Types ¶
type App ¶
type App struct { FlagClause // contains filtered or unexported fields }
App is a wrapper around kingping.Application for easier use.
type AppClause ¶
type AppClause interface { FlagClause Command(cmd string, help string) AppClause Flags() []*kingpin.FlagModel Setup(s SetupFunc) }
type FlagClause ¶
type FlagClause interface {
Flag(name, help string) *kingpin.FlagClause
}
Click to show internal directories.
Click to hide internal directories.