messages

package
v0.0.0-...-e3d3006 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package messages is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageHandler

type MessageHandler interface {
	Notify([]hosts.Repository) error
}

MessageHandler is the interface that wraps the Notify method. This method sends a message concerning the pull requests to a messaging provider

func GetHandlers

func GetHandlers(config *config.TeamConfig) []MessageHandler

GetHandlers returns all available and configured MessageHandler instances

type MockMessageHandler

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

MockMessageHandler is a mock of MessageHandler interface

func NewMockMessageHandler

func NewMockMessageHandler(ctrl *gomock.Controller) *MockMessageHandler

NewMockMessageHandler creates a new mock instance

func (*MockMessageHandler) EXPECT

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

func (*MockMessageHandler) Notify

func (m *MockMessageHandler) Notify(arg0 []hosts.Repository) error

Notify mocks base method

type MockMessageHandlerMockRecorder

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

MockMessageHandlerMockRecorder is the mock recorder for MockMessageHandler

func (*MockMessageHandlerMockRecorder) Notify

func (mr *MockMessageHandlerMockRecorder) Notify(arg0 interface{}) *gomock.Call

Notify indicates an expected call of Notify

Jump to

Keyboard shortcuts

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