Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
type APIHandler interface {
ServeHTTP(w http.ResponseWriter, r *http.Request)
Shutdown() error
}
type APIWorker ¶
type APIWorker struct {
// contains filtered or unexported fields
}
func NewAPIWorker ¶
func NewAPIWorker( ctx context.Context, wg *sync.WaitGroup, app Application, id int, handler APIHandler) *APIWorker
type Application ¶
type ArchiverWorker ¶
type ArchiverWorker struct {
// contains filtered or unexported fields
}
func NewArchiverWorker ¶
func NewArchiverWorker( ctx context.Context, wg *sync.WaitGroup, app Application, metricsQueue chan *helpers.VarnishMetrics, storage *storage.Storage) *ArchiverWorker
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(app Application) *Manager
type MockAPIHandler ¶
MockAPIHandler is an autogenerated mock type for the APIHandler type
func NewMockAPIHandler ¶
func NewMockAPIHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockAPIHandler
NewMockAPIHandler creates a new instance of MockAPIHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAPIHandler) ServeHTTP ¶
func (_m *MockAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP provides a mock function with given fields: w, r
func (*MockAPIHandler) Shutdown ¶
func (_m *MockAPIHandler) Shutdown() error
Shutdown provides a mock function with no fields
type MockApplication ¶
MockApplication is an autogenerated mock type for the Application type
func NewMockApplication ¶
func NewMockApplication(t interface {
mock.TestingT
Cleanup(func())
}) *MockApplication
NewMockApplication creates a new instance of MockApplication. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockApplication) Cfg ¶
func (_m *MockApplication) Cfg() *config.Config
Cfg provides a mock function with no fields
type ScraperWorker ¶
type ScraperWorker struct {
// contains filtered or unexported fields
}
func NewScraperWorker ¶
func NewScraperWorker( ctx context.Context, wg *sync.WaitGroup, app Application, metricsQueue chan *helpers.VarnishMetrics) *ScraperWorker