mocks

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BMC added in v2.1.0

type BMC struct {
	mock.Mock
}

BMC is an autogenerated mock type for the BMC type

func (*BMC) GetExtras added in v2.1.0

func (_m *BMC) GetExtras() ([]*models.BMCPurchase, error)

GetExtras provides a mock function with given fields:

func (*BMC) GetMembers added in v2.1.0

func (_m *BMC) GetMembers(_a0 string) ([]*models.BMCMember, error)

GetMembers provides a mock function with given fields: _a0

func (*BMC) GetNotifyExtras added in v2.2.0

func (_m *BMC) GetNotifyExtras() bool

GetNotifyExtras provides a mock function with given fields:

func (*BMC) GetNotifyMembers added in v2.2.0

func (_m *BMC) GetNotifyMembers() bool

GetNotifyMembers provides a mock function with given fields:

func (*BMC) GetNotifySupporters added in v2.2.0

func (_m *BMC) GetNotifySupporters() bool

GetNotifySupporters provides a mock function with given fields:

func (*BMC) GetRoomID added in v2.1.0

func (_m *BMC) GetRoomID() id.RoomID

GetRoomID provides a mock function with given fields:

func (*BMC) GetSupporters added in v2.1.0

func (_m *BMC) GetSupporters() ([]*models.BMCSupporter, error)

GetSupporters provides a mock function with given fields:

type BMCAPIclient added in v2.1.0

type BMCAPIclient struct {
	mock.Mock
}

BMCAPIclient is an autogenerated mock type for the BMCAPIclient type

func (*BMCAPIclient) GetExtras added in v2.1.0

func (_m *BMCAPIclient) GetExtras() (bmc.Extras, error)

GetExtras provides a mock function with given fields:

func (*BMCAPIclient) GetMembers added in v2.1.0

func (_m *BMCAPIclient) GetMembers(_a0 string) (bmc.Members, error)

GetMembers provides a mock function with given fields: _a0

func (*BMCAPIclient) GetSupporters added in v2.1.0

func (_m *BMCAPIclient) GetSupporters() (bmc.Supporters, error)

GetSupporters provides a mock function with given fields:

type Extension

type Extension struct {
	mock.Mock
}

Extension is an autogenerated mock type for the Extension type

func (*Extension) ExecuteHTML

func (_m *Extension) ExecuteHTML(name string, data map[string]string) string

ExecuteHTML provides a mock function with given fields: name, data

func (*Extension) ExecuteMarkdown

func (_m *Extension) ExecuteMarkdown(name string, data map[string]string) string

ExecuteMarkdown provides a mock function with given fields: name, data

type FormHandler

type FormHandler struct {
	mock.Mock
}

FormHandler is an autogenerated mock type for the FormHandler type

func (*FormHandler) HandleGET

func (_m *FormHandler) HandleGET(_a0 string, _a1 *http.Request) (string, error)

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

func (*FormHandler) HandlePOST

func (_m *FormHandler) HandlePOST(_a0 string, _a1 *http.Request) (string, error)

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

type FormSender

type FormSender struct {
	mock.Mock
}

FormSender is an autogenerated mock type for the FormSender type

func (*FormSender) SendMessage

func (_m *FormSender) SendMessage(_a0 id.RoomID, _a1 string) error

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

func (*FormSender) SendWebhook

func (_m *FormSender) SendWebhook(_a0 string, _a1 string, _a2 string, _a3 string, _a4 string) error

SendWebhook provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type HTTPServer

type HTTPServer struct {
	mock.Mock
}

HTTPServer is an autogenerated mock type for the HTTPServer type

func (*HTTPServer) Start

func (_m *HTTPServer) Start()

Start provides a mock function with given fields:

type IPMatcher

type IPMatcher struct {
	mock.Mock
}

IPMatcher is an autogenerated mock type for the IPMatcher type

func (*IPMatcher) Match

func (_m *IPMatcher) Match(_a0 *http.Request) string

Match provides a mock function with given fields: _a0

func (*IPMatcher) MatchHash added in v2.1.0

func (_m *IPMatcher) MatchHash(_a0 *http.Request) uint32

MatchHash provides a mock function with given fields: _a0

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debug

func (_m *Logger) Debug(message string, args ...interface{})

Debug provides a mock function with given fields: message, args

func (*Logger) Error

func (_m *Logger) Error(message string, args ...interface{})

Error provides a mock function with given fields: message, args

func (*Logger) GetLog

func (_m *Logger) GetLog() *log.Logger

GetLog provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info(message string, args ...interface{})

Info provides a mock function with given fields: message, args

func (*Logger) Trace

func (_m *Logger) Trace(message string, args ...interface{})

Trace provides a mock function with given fields: message, args

func (*Logger) Warn

func (_m *Logger) Warn(message string, args ...interface{})

Warn provides a mock function with given fields: message, args

type MatrixBot

type MatrixBot struct {
	mock.Mock
}

MatrixBot is an autogenerated mock type for the MatrixBot type

func (*MatrixBot) SendMessage

func (_m *MatrixBot) SendMessage(roomID id.RoomID, message string) error

SendMessage provides a mock function with given fields: roomID, message

func (*MatrixBot) SendWebhook

func (_m *MatrixBot) SendWebhook(avatar string, name string, format string, text string, url string) error

SendWebhook provides a mock function with given fields: avatar, name, format, text, url

func (*MatrixBot) Start

func (_m *MatrixBot) Start(displayName string)

Start provides a mock function with given fields: displayName

func (*MatrixBot) Stop

func (_m *MatrixBot) Stop()

Stop provides a mock function with given fields:

type MatrixClient

type MatrixClient struct {
	mock.Mock
}

MatrixClient is an autogenerated mock type for the MatrixClient type

func (*MatrixClient) GetAccountData added in v2.2.0

func (_m *MatrixClient) GetAccountData(_a0 string, _a1 interface{}) error

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

func (*MatrixClient) GetOwnDisplayName

func (_m *MatrixClient) GetOwnDisplayName() (*mautrix.RespUserDisplayName, error)

GetOwnDisplayName provides a mock function with given fields:

func (*MatrixClient) JoinRoomByID

func (_m *MatrixClient) JoinRoomByID(_a0 id.RoomID) (*mautrix.RespJoinRoom, error)

JoinRoomByID provides a mock function with given fields: _a0

func (*MatrixClient) LeaveRoom

func (_m *MatrixClient) LeaveRoom(_a0 id.RoomID) (*mautrix.RespLeaveRoom, error)

LeaveRoom provides a mock function with given fields: _a0

func (*MatrixClient) Logout

func (_m *MatrixClient) Logout() (*mautrix.RespLogout, error)

Logout provides a mock function with given fields:

func (*MatrixClient) SendMessageEvent

func (_m *MatrixClient) SendMessageEvent(_a0 id.RoomID, _a1 event.Type, _a2 interface{}, _a3 ...mautrix.ReqSendEvent) (*mautrix.RespSendEvent, error)

SendMessageEvent provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*MatrixClient) SetAccountData added in v2.2.0

func (_m *MatrixClient) SetAccountData(_a0 string, _a1 interface{}) error

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

func (*MatrixClient) SetDisplayName

func (_m *MatrixClient) SetDisplayName(_a0 string) error

SetDisplayName provides a mock function with given fields: _a0

func (*MatrixClient) SetPresence

func (_m *MatrixClient) SetPresence(_a0 event.Presence) error

SetPresence provides a mock function with given fields: _a0

func (*MatrixClient) Sync

func (_m *MatrixClient) Sync() error

Sync provides a mock function with given fields:

func (*MatrixClient) UserTyping added in v2.2.1

func (_m *MatrixClient) UserTyping(_a0 id.RoomID, _a1 bool, _a2 int64) (*mautrix.RespTyping, error)

UserTyping provides a mock function with given fields: _a0, _a1, _a2

func (*MatrixClient) Whoami

func (_m *MatrixClient) Whoami() (*mautrix.RespWhoami, error)

Whoami provides a mock function with given fields:

type MatrixRegistrationClient

type MatrixRegistrationClient struct {
	mock.Mock
}

MatrixRegistrationClient is an autogenerated mock type for the MatrixRegistrationClient type

func (*MatrixRegistrationClient) CreateToken

func (_m *MatrixRegistrationClient) CreateToken(_a0 string, _a1 string) (*models.RegistrationToken, error)

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

func (*MatrixRegistrationClient) DisableToken

func (_m *MatrixRegistrationClient) DisableToken(_a0 string) (*models.RegistrationToken, error)

DisableToken provides a mock function with given fields: _a0

func (*MatrixRegistrationClient) GetList

GetList provides a mock function with given fields:

func (*MatrixRegistrationClient) GetNotifyNew added in v2.2.0

func (_m *MatrixRegistrationClient) GetNotifyNew() bool

GetNotifyNew provides a mock function with given fields:

func (*MatrixRegistrationClient) GetNotifyUse added in v2.2.0

func (_m *MatrixRegistrationClient) GetNotifyUse() bool

GetNotifyUse provides a mock function with given fields:

func (*MatrixRegistrationClient) GetRoomID

func (_m *MatrixRegistrationClient) GetRoomID() id.RoomID

GetRoomID provides a mock function with given fields:

func (*MatrixRegistrationClient) GetStatus

GetStatus provides a mock function with given fields: _a0

type MatrixSyncer

type MatrixSyncer struct {
	mock.Mock
}

MatrixSyncer is an autogenerated mock type for the MatrixSyncer type

func (*MatrixSyncer) OnEvent

func (_m *MatrixSyncer) OnEvent(callback mautrix.EventHandler)

OnEvent provides a mock function with given fields: callback

func (*MatrixSyncer) OnEventType

func (_m *MatrixSyncer) OnEventType(eventType event.Type, callback mautrix.EventHandler)

OnEventType provides a mock function with given fields: eventType, callback

func (*MatrixSyncer) OnSync

func (_m *MatrixSyncer) OnSync(callback mautrix.SyncHandler)

OnSync provides a mock function with given fields: callback

type NetworkValidator added in v2.1.0

type NetworkValidator struct {
	mock.Mock
}

NetworkValidator is an autogenerated mock type for the NetworkValidator type

func (*NetworkValidator) HasA added in v2.1.0

func (_m *NetworkValidator) HasA(host string) bool

HasA provides a mock function with given fields: host

func (*NetworkValidator) HasCNAME added in v2.1.0

func (_m *NetworkValidator) HasCNAME(host string) bool

HasCNAME provides a mock function with given fields: host

func (*NetworkValidator) HasMX added in v2.1.0

func (_m *NetworkValidator) HasMX(host string) bool

HasMX provides a mock function with given fields: host

type Policy added in v2.1.0

type Policy struct {
	mock.Mock
}

Policy is an autogenerated mock type for the Policy type

func (*Policy) Sanitize added in v2.1.0

func (_m *Policy) Sanitize(_a0 string) string

Sanitize provides a mock function with given fields: _a0

type RateLimiter added in v2.1.0

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the RateLimiter type

func (*RateLimiter) Allow added in v2.1.0

func (_m *RateLimiter) Allow(_a0 uint32) bool

Allow provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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