mock

package
v0.0.0-...-891ed02 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	m.Mock
}

HTTPServer is a mock server that represents Go's http.Server.

func (*HTTPServer) ListenAndServe

func (_m *HTTPServer) ListenAndServe() error

ListenAndServe is the mock equivalent to http.Server.ListenAndServe().

type Logger

type Logger struct {
	m.Mock
}

Logger is a mock server.

func (*Logger) Debug

func (_m *Logger) Debug(v ...interface{})

Debug is the mock equivalent to logger.Debug().

func (*Logger) Debugf

func (_m *Logger) Debugf(f string, v ...interface{})

Debugf is the mock equivalent to logger.Debugf().

func (*Logger) Error

func (_m *Logger) Error(v ...interface{})

Error is the mock equivalent to logger.Error().

func (*Logger) Errorf

func (_m *Logger) Errorf(f string, v ...interface{})

Errorf is the mock equivalent to logger.Errorf().

func (*Logger) Fatal

func (_m *Logger) Fatal(v ...interface{})

Fatal is the mock equivalent to logger.Fatal().

func (*Logger) Fatalf

func (_m *Logger) Fatalf(f string, v ...interface{})

Fatalf is the mock equivalent to logger.Fatalf().

func (*Logger) Info

func (_m *Logger) Info(v ...interface{})

Info is the mock equivalent to logger.Info().

func (*Logger) Infof

func (_m *Logger) Infof(f string, v ...interface{})

Infof is the mock equivalent to logger.Infof().

func (*Logger) Warn

func (_m *Logger) Warn(v ...interface{})

Warn is the mock equivalent to logger.Warn().

func (*Logger) Warnf

func (_m *Logger) Warnf(f string, v ...interface{})

Warnf is the mock equivalent to logger.Warnf().

type Producer

type Producer struct {
	m.Mock
}

Producer is a mock NATS producer.

func (*Producer) CloseConn

func (_m *Producer) CloseConn()

CloseConn is the mock equivalent to Producer.CloseConn().

func (*Producer) PublishMessage

func (_m *Producer) PublishMessage(data []byte) error

PublishMessage is the mock equivalent to Producer.PublishMessage().

type ProducerConn

type ProducerConn struct {
	m.Mock
}

ProducerConn is a mock NATS TCP connection.

func (*ProducerConn) Close

func (_m *ProducerConn) Close()

Close is the mock equivalent to ProducerConn.Close().

func (*ProducerConn) Publish

func (_m *ProducerConn) Publish(queue string, data []byte) error

Publish is the mock equivalent to ProducerConn.Publish().

type Service

type Service struct {
	m.Mock
}

Service ...

func (*Service) PublishMessage

func (_m *Service) PublishMessage(data []byte) error

PublishMessage ...

func (*Service) Start

func (_m *Service) Start() error

Start ...

func (*Service) Stop

func (_m *Service) Stop()

Stop ...

Jump to

Keyboard shortcuts

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