analytics

package
v0.0.0-...-fb315dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package mock_analytics is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(service Service, logger kitlog.Logger, ml machineLearning.Service) http.Handler

MakeHandler returns a Rest HTTP endpoint for chef alerts Machine learning can be left as nil if you do not wish to store the request

Types

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) SendAnalyticsAlert

func (m *MockService) SendAnalyticsAlert(message string)

SendAnalyticsAlert mocks base method

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) SendAnalyticsAlert

func (mr *MockServiceMockRecorder) SendAnalyticsAlert(message interface{}) *gomock.Call

SendAnalyticsAlert indicates an expected call of SendAnalyticsAlert

type Service

type Service interface {
	SendAnalyticsAlert(ctx context.Context, message string)
}

func NewInstrumentService

func NewInstrumentService(counter metrics.Counter, latency metrics.Histogram, s Service) Service

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(alertService alert.Service, chefStore chef.Store) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL