snmp

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: 17 Imported by: 2

Documentation

Overview

Package snmp is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) SendSNMPMessage

func (m *MockService) SendSNMPMessage(ctx context.Context, chat uint32)

SendSNMPMessage mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) SendSNMPMessage

func (mr *MockServiceMockRecorder) SendSNMPMessage(ctx, chat interface{}) *gomock.Call

SendSNMPMessage indicates an expected call of SendSNMPMessage

type Service

type Service interface {
	SendSNMPMessage(ctx context.Context, chat uint32)
}

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(alert alert.Service, ml machineLearning.Service) Service

NewService returns a new SNMP service for sending SNMP messages. A SNMP server is also started on port 9162

Jump to

Keyboard shortcuts

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