Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnhandledError error = errors.New("an unhandled gRPC error occurred")
Functions ¶
func WithPreSharedKey ¶
func WithPreSharedKey(key string) grpc.DialOption
Types ¶
type Client ¶
type ClientOption ¶
type ClientOption func(c *client) error
func WithDialOptions ¶
func WithDialOptions(opt ...grpc.DialOption) ClientOption
func WithMetrics ¶
func WithMetrics(reg prometheus.Registerer) ClientOption
func WithPeerName ¶
func WithPeerName(name string) ClientOption
func WithTLS ¶
func WithTLS(config *tls.Config) ClientOption
type MetricsCollector ¶
type MetricsCollector struct {
// contains filtered or unexported fields
}
func (*MetricsCollector) For ¶
func (mc *MetricsCollector) For(md api.Metadata) RequestMetricsCollector
type RequestMetricsCollector ¶
type RequestMetricsCollector interface { Erred() Pushed() Pulled() Acknowledged() }
Click to show internal directories.
Click to hide internal directories.