mocks

package
v0.0.0-...-af869ec Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	mock.Mock
}

Collector is an autogenerated mock type for the Collector type

func (*Collector) GetStats

func (_m *Collector) GetStats(m int) sysmon.StatisticsData

GetStats provides a mock function with given fields: m

func (*Collector) GetStatusServices

func (_m *Collector) GetStatusServices() sysmon.StatusServices

GetStatusServices provides a mock function with given fields:

func (*Collector) Start

func (_m *Collector) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type DataRequestFunc

type DataRequestFunc struct {
	mock.Mock
}

DataRequestFunc is an autogenerated mock type for the DataRequestFunc type

func (*DataRequestFunc) Execute

func (_m *DataRequestFunc) Execute() ([]float64, error)

Execute provides a mock function with given fields:

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debug

func (_m *Logger) Debug(msg string, pkg string)

Debug provides a mock function with given fields: msg, pkg

func (*Logger) Error

func (_m *Logger) Error(msg string)

Error provides a mock function with given fields: msg

func (*Logger) Info

func (_m *Logger) Info(msg string)

Info provides a mock function with given fields: msg

func (*Logger) Warn

func (_m *Logger) Warn(msg string)

Warn provides a mock function with given fields: msg

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func (*Server) Start

func (_m *Server) Start(ctx context.Context, addr string) error

Start provides a mock function with given fields: ctx, addr

func (*Server) Stop

func (_m *Server) Stop(ctx context.Context) error

Stop provides a mock function with given fields: ctx

type StatisticsClient

type StatisticsClient struct {
	mock.Mock
}

StatisticsClient is an autogenerated mock type for the StatisticsClient type

func (*StatisticsClient) ListStatistics

ListStatistics provides a mock function with given fields: ctx, in, opts

type StatisticsServer

type StatisticsServer struct {
	mock.Mock
}

StatisticsServer is an autogenerated mock type for the StatisticsServer type

func (*StatisticsServer) ListStatistics

ListStatistics provides a mock function with given fields: _a0, _a1

type Statistics_ListStatisticsClient

type Statistics_ListStatisticsClient struct {
	mock.Mock
}

Statistics_ListStatisticsClient is an autogenerated mock type for the Statistics_ListStatisticsClient type

func (*Statistics_ListStatisticsClient) CloseSend

func (_m *Statistics_ListStatisticsClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*Statistics_ListStatisticsClient) Context

Context provides a mock function with given fields:

func (*Statistics_ListStatisticsClient) Header

Header provides a mock function with given fields:

func (*Statistics_ListStatisticsClient) Recv

Recv provides a mock function with given fields:

func (*Statistics_ListStatisticsClient) RecvMsg

func (_m *Statistics_ListStatisticsClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Statistics_ListStatisticsClient) SendMsg

func (_m *Statistics_ListStatisticsClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Statistics_ListStatisticsClient) Trailer

Trailer provides a mock function with given fields:

type Statistics_ListStatisticsServer

type Statistics_ListStatisticsServer struct {
	mock.Mock
}

Statistics_ListStatisticsServer is an autogenerated mock type for the Statistics_ListStatisticsServer type

func (*Statistics_ListStatisticsServer) Context

Context provides a mock function with given fields:

func (*Statistics_ListStatisticsServer) RecvMsg

func (_m *Statistics_ListStatisticsServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Statistics_ListStatisticsServer) Send

Send provides a mock function with given fields: _a0

func (*Statistics_ListStatisticsServer) SendHeader

func (_m *Statistics_ListStatisticsServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*Statistics_ListStatisticsServer) SendMsg

func (_m *Statistics_ListStatisticsServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Statistics_ListStatisticsServer) SetHeader

func (_m *Statistics_ListStatisticsServer) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*Statistics_ListStatisticsServer) SetTrailer

func (_m *Statistics_ListStatisticsServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type UnsafeStatisticsServer

type UnsafeStatisticsServer struct {
	mock.Mock
}

UnsafeStatisticsServer is an autogenerated mock type for the UnsafeStatisticsServer type

Jump to

Keyboard shortcuts

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