Documentation ¶
Overview ¶
Package handler is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlushHandlerConfiguration ¶
type FlushHandlerConfiguration struct { Handlers []flushHandlerConfiguration `yaml:"handlers" validate:"nonzero"` Writer *writerConfiguration `yaml:"writer"` TrafficControlKVOverride *kv.OverrideConfiguration `yaml:"trafficControlKVOverride"` }
FlushHandlerConfiguration configures flush handlers.
func (FlushHandlerConfiguration) NewHandler ¶
func (c FlushHandlerConfiguration) NewHandler( cs client.Client, instrumentOpts instrument.Options, ) (Handler, error)
NewHandler creates a new flush handler based on the configuration.
type Handler ¶
type Handler interface { // NewWriter creates a new writer for writing aggregated metrics and policies. NewWriter(scope tally.Scope) (writer.Writer, error) // Close closes the handler. Close() }
Handler handles aggregated metrics alongside their policies.
func NewBlackholeHandler ¶
func NewBlackholeHandler() Handler
NewBlackholeHandler creates a new blackhole handler.
func NewBroadcastHandler ¶
NewBroadcastHandler creates a new Handler that broadcasts incoming data to a list of handlers.
func NewLoggingHandler ¶
NewLoggingHandler creates a new logging handler.
func NewShardedHandler ¶
func NewShardedHandler(srs []SharderRouter, writerOpts writer.Options) Handler
NewShardedHandler creates a new sharded handler.
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler
func (*MockHandlerMockRecorder) Close ¶
func (mr *MockHandlerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockHandlerMockRecorder) NewWriter ¶
func (mr *MockHandlerMockRecorder) NewWriter(arg0 interface{}) *gomock.Call
NewWriter indicates an expected call of NewWriter
type SharderRouter ¶
SharderRouter contains a sharder id and a router.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package common is a generated GoMock package.
|
Package common is a generated GoMock package. |
Package router is a generated GoMock package.
|
Package router is a generated GoMock package. |
Package writer is a generated GoMock package.
|
Package writer is a generated GoMock package. |