Documentation ¶
Index ¶
- type GrpcSource
- type Option
- func WithHystrixCommandName(commandName string) Option
- func WithHystrixErrorPercentThreshold(errorPercent int) Option
- func WithHystrixMaxConcurrentRequests(maxRequest int) Option
- func WithHystrixRequestVolumeThreshold(requestVolume int) Option
- func WithHystrixSleepWindow(sleepWindow int) Option
- func WithHystrixTimeout(timeout int) Option
- func WithURL(url string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcSource ¶
type GrpcSource struct {
// contains filtered or unexported fields
}
GrpcSource grpc configuration source
func NewGrpcSource ¶
func NewGrpcSource(opts ...Option) *GrpcSource
NewGrpcSource create configuration source from grpc
func (*GrpcSource) Get ¶
func (g *GrpcSource) Get(key string) (*config4live.Config, error)
Get call grpc findConfig by key
type Option ¶
type Option func(s *GrpcSource)
Option the grpc source options
func WithHystrixCommandName ¶
WithHystrixCommandName set hystrix command name
func WithHystrixErrorPercentThreshold ¶
WithHystrixErrorPercentThreshold set hystrix error_percent_threshold
func WithHystrixMaxConcurrentRequests ¶
WithHystrixMaxConcurrentRequests set hystrix max_concurrent_requests
func WithHystrixRequestVolumeThreshold ¶
WithHystrixRequestVolumeThreshold set hystrix request_volume_threshold
func WithHystrixSleepWindow ¶
WithHystrixSleepWindow set hystrix sleep_window
func WithHystrixTimeout ¶
WithHystrixTimeout set hystrix timeout
Click to show internal directories.
Click to hide internal directories.