Versions in this module Expand all Collapse all v0 v0.1.1 Jul 3, 2021 v0.1.0 Jul 2, 2021 Changes in this version + var ErrorNoAPIMakeFunc = errors.New("no endpoint make function is specified") + var ErrorNoAPIName = errors.New("API name is required") + func SetDefaultAPIBreakerFlagsPrefix(prefix string) + func SetDefaultAPIBreakerInterval(val time.Duration) + func SetDefaultAPIBreakerMaxRequests(val uint32) + func SetDefaultAPIBreakerTimeout(val time.Duration) + func SetDefaultAPIFlagsPrefix(prefix string) + func SetDefaultAPILogKVs(logkvs map[string]string) + func SetDefaultAPIRateLimitDelta(val int) + func SetDefaultAPIRateLimitDuration(val time.Duration) + func SetDefaultAPIRateLimitFlagsPrefix(prefix string) + type API struct + Breaker Breaker + CustomBindFlagsFunc func(fs *bootflag.FlagSet) + CustomParseFunc func() (err error) + Instrument []string + LogKVs map[string]string + Method string + Name string + Path string + RateLimit RateLimit + func (a *API) BindFlags(fs *bootflag.FlagSet) + func (a *API) Parse() (err error) + func (a API) GetGoKitLoggerKVs() (kvs []interface{}) + type APIs map[string]API + func (as *APIs) Parse() (err error) + type Breaker struct + CustomBindFlagsFunc func(fs *bootflag.FlagSet) + CustomParseFunc func() (err error) + Interval time.Duration + MaxRequests uint32 + Name string + Timeout time.Duration + func (b *Breaker) BindFlags(fs *bootflag.FlagSet) + func (b *Breaker) Parse() (err error) + func (b *Breaker) Standardize() gobreaker.Settings + type Method uint8 + const DELETE + const GET + const PATCH + const POST + const PUT + type RateLimit struct + CustomBindFlagsFunc func(fs *bootflag.FlagSet) + CustomParseFunc func() (err error) + Delta int + Duration time.Duration + func (rl *RateLimit) BindFlags(fs *bootflag.FlagSet) + func (rl RateLimit) Parse() (err error)