Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chuangyou/qsf
/ types & classes
Types & classes
54 in github.com/chuangyou/qsf
⨍
Functions
270
◇
Types & classes
54
↓ 2 callers
TypeAlias
counterOptions
plugin/prometheus/metric_options.go:10
Struct
Breaker
Breaker is the base of a circuit breaker. It maintains failure and success counters as well as the event subscribers.
plugin/breaker/circuitbreaker.go:63
TypeAlias
BreakerEvent
BreakerEvent indicates the type of event received over an event channel
plugin/breaker/circuitbreaker.go:15
TypeAlias
Class
A Class is a set of types of outcomes (including errors) that will often be handled in the same way.
plugin/tracing/errors.go:12
Struct
Client
client/client.go:34
Struct
ClientInterceptorTestSuite
plugin/prometheus/client_test.go:33
Struct
ClientMetrics
ClientMetrics represents a collection of metrics to be registered on a Prometheus metrics registry for a gRPC client.
plugin/prometheus/client_metrics.go:15
Struct
Config
client/client.go:25
Struct
Config
server/server.go:30
FuncType
CounterOption
A CounterOption lets you add options to Counter metrics using With* funcs.
plugin/prometheus/metric_options.go:8
Struct
ErrorJson
grpc_error/error.go:17
Struct
EtcdReigistry
plugin/loadbalance/registry/etcd/registry.go:14
Struct
EtcdResolver
EtcdResolver is an implementation of grpc.naming.Resolver
plugin/loadbalance/registry/etcd/resolver.go:12
Struct
EtcdWatcher
EtcdWatcher is the implementation of grpc.naming.Watcher
plugin/loadbalance/registry/etcd/watcher.go:14
Struct
Example
please upgrade the proto package
examples/pb/example.pb.go:26
Struct
ExampleService
examples/server/server_example.go:72
Interface
ExampleServiceClient
ExampleServiceClient is the client API for ExampleService service. For semantics around ctx use and closing/ending streaming RPCs, please refer to ht
examples/pb/example.pb.go:138
Interface
ExampleServiceServer
ExampleServiceServer is the server API for ExampleService service.
examples/pb/example.pb.go:160
Struct
GetExampleRequest
examples/pb/example.pb.go:65
Struct
HTTPClient
HTTPClient is a wrapper around http.Client that provides circuit breaker capabilities. By default, the client will use its defaultBreaker. A BreakerL
plugin/breaker/client.go:15
FuncType
HistogramOption
A HistogramOption lets you add options to Histogram metrics using With* funcs.
plugin/prometheus/metric_options.go:28
Struct
ListenerEvent
ListenerEvent includes a reference to the circuit breaker and the event.
plugin/breaker/circuitbreaker.go:32
Struct
NodeData
plugin/loadbalance/registry/etcd/registry.go:33
FuncType
Option
Option instances may be used in OpenTracing(Server|Client)Interceptor initialization. See this post about the "functional options" pattern: http://da
plugin/tracing/options.go:10
Struct
Option
plugin/loadbalance/registry/etcd/registry.go:24
Struct
Options
Options holds breaker configuration options.
plugin/breaker/circuitbreaker.go:91
Struct
Panel
Panel tracks a group of circuit breakers by name.
plugin/breaker/panel.go:25
Struct
PanelEvent
PanelEvent wraps a BreakerEvent and provides the string name of the breaker
plugin/breaker/panel.go:19
Struct
RateLimiter
RateLimiter instances are thread-safe.
plugin/ratelimit/ratelimit.go:9
Struct
ServerInterceptorTestSuite
plugin/prometheus/server_test.go:47
Struct
ServerMetrics
ServerMetrics represents a collection of metrics to be registered on a Prometheus metrics registry for a gRPC server.
plugin/prometheus/server_metrics.go:12
Struct
Service
server/server.go:40
Struct
ServiceCredential
client/client.go:143
Interface
ServiceCredentialer
client/client.go:138
FuncType
SpanDecoratorFunc
SpanDecoratorFunc provides an (optional) mechanism for otgrpc users to add arbitrary tags/logs/etc to the opentracing.Span associated with client and/
plugin/tracing/options.go:41
FuncType
SpanInclusionFunc
SpanInclusionFunc provides an optional mechanism to decide whether or not to trace a given gRPC call. Return true to create a Span and initiate tracin
plugin/tracing/options.go:26
Interface
Statter
Statter interface provides a way to gather statistics from breakers
plugin/breaker/panel.go:12
FuncType
TripFunc
TripFunc is a function called by a Breaker's Fail() function and determines whether the breaker should trip. It will receive the Breaker as an argumen
plugin/breaker/circuitbreaker.go:59
Struct
bucket
bucket holds counts of failures and successes
plugin/breaker/window.go:20
Struct
clientReporter
plugin/prometheus/client_reporter.go:12
Struct
exampleServiceClient
examples/pb/example.pb.go:142
TypeAlias
grpcType
plugin/prometheus/util.go:13
Struct
metadataReaderWriter
metadataReaderWriter satisfies both the opentracing.TextMapReader and opentracing.TextMapWriter interfaces.
plugin/tracing/shared.go:18
Struct
monitoredClientStream
monitoredClientStream wraps grpc.ClientStream allowing each Sent/Recv of message to increment counters.
plugin/prometheus/client_metrics.go:146
Struct
monitoredServerStream
monitoredStream wraps grpc.ServerStream allowing each Sent/Recv of message to increment counters.
plugin/prometheus/server_metrics.go:150
Struct
noopStatter
plugin/breaker/panel.go:139
Struct
openTracingClientStream
plugin/tracing/client.go:181
Struct
openTracingServerStream
plugin/tracing/server.go:126
Struct
options
The internal-only options struct. Obviously overkill at the moment; but will scale well as production use dictates other configuration and tuning para
plugin/tracing/options.go:57
Struct
serverReporter
plugin/prometheus/server_reporter.go:12
TypeAlias
state
plugin/breaker/circuitbreaker.go:37
Struct
testService
plugin/prometheus/server_test.go:226
Struct
testStatter
plugin/breaker/panel_test.go:75
Struct
window
window maintains a ring of buckets and increments the failure and success counts of the current bucket. Once a specified time has elapsed, it will adv
plugin/breaker/window.go:45