Documentation ¶
Overview ¶
Package mgmt provide management server. Provides API to get info about reproxy routes and settings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter) *responseWriter
NewResponseWriter wraps http.ResponseWriter with stored status code
Types ¶
type InformerMock ¶
type InformerMock struct { // MappersFunc mocks the Mappers method. MappersFunc func() []discovery.URLMapper // contains filtered or unexported fields }
InformerMock is a mock implementation of Informer.
func TestSomethingThatUsesInformer(t *testing.T) { // make and configure a mocked Informer mockedInformer := &InformerMock{ MappersFunc: func() []discovery.URLMapper { panic("mock out the Mappers method") }, } // use mockedInformer in code that requires Informer // and then make assertions. }
func (*InformerMock) Mappers ¶
func (mock *InformerMock) Mappers() []discovery.URLMapper
Mappers calls MappersFunc.
func (*InformerMock) MappersCalls ¶
func (mock *InformerMock) MappersCalls() []struct { }
MappersCalls gets all the calls that were made to Mappers. Check the length with:
len(mockedInformer.MappersCalls())
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics provides registration and middleware for prometheus
func NewMetrics ¶
func NewMetrics() *Metrics
NewMetrics create metrics object with all counters registered
Click to show internal directories.
Click to hide internal directories.