Documentation
¶
Index ¶
- type BMC
- func (_m *BMC) GetExtras() ([]*models.BMCPurchase, error)
- func (_m *BMC) GetMembers(_a0 string) ([]*models.BMCMember, error)
- func (_m *BMC) GetNotifyExtras() bool
- func (_m *BMC) GetNotifyMembers() bool
- func (_m *BMC) GetNotifySupporters() bool
- func (_m *BMC) GetRoomID() id.RoomID
- func (_m *BMC) GetSupporters() ([]*models.BMCSupporter, error)
- type BMCAPIclient
- type Extension
- type FormHandler
- type FormSender
- type HTTPServer
- type IPMatcher
- type Logger
- func (_m *Logger) Debug(message string, args ...interface{})
- func (_m *Logger) Error(message string, args ...interface{})
- func (_m *Logger) GetLog() *log.Logger
- func (_m *Logger) Info(message string, args ...interface{})
- func (_m *Logger) Trace(message string, args ...interface{})
- func (_m *Logger) Warn(message string, args ...interface{})
- type MatrixBot
- type MatrixClient
- func (_m *MatrixClient) GetAccountData(_a0 string, _a1 interface{}) error
- func (_m *MatrixClient) GetOwnDisplayName() (*mautrix.RespUserDisplayName, error)
- func (_m *MatrixClient) JoinRoomByID(_a0 id.RoomID) (*mautrix.RespJoinRoom, error)
- func (_m *MatrixClient) LeaveRoom(_a0 id.RoomID) (*mautrix.RespLeaveRoom, error)
- func (_m *MatrixClient) Logout() (*mautrix.RespLogout, error)
- func (_m *MatrixClient) SendMessageEvent(_a0 id.RoomID, _a1 event.Type, _a2 interface{}, _a3 ...mautrix.ReqSendEvent) (*mautrix.RespSendEvent, error)
- func (_m *MatrixClient) SetAccountData(_a0 string, _a1 interface{}) error
- func (_m *MatrixClient) SetDisplayName(_a0 string) error
- func (_m *MatrixClient) SetPresence(_a0 event.Presence) error
- func (_m *MatrixClient) Sync() error
- func (_m *MatrixClient) UserTyping(_a0 id.RoomID, _a1 bool, _a2 int64) (*mautrix.RespTyping, error)
- func (_m *MatrixClient) Whoami() (*mautrix.RespWhoami, error)
- type MatrixRegistrationClient
- func (_m *MatrixRegistrationClient) CreateToken(_a0 string, _a1 string) (*models.RegistrationToken, error)
- func (_m *MatrixRegistrationClient) DisableToken(_a0 string) (*models.RegistrationToken, error)
- func (_m *MatrixRegistrationClient) GetList() ([]models.RegistrationToken, error)
- func (_m *MatrixRegistrationClient) GetNotifyNew() bool
- func (_m *MatrixRegistrationClient) GetNotifyUse() bool
- func (_m *MatrixRegistrationClient) GetRoomID() id.RoomID
- func (_m *MatrixRegistrationClient) GetStatus(_a0 string) (*models.RegistrationToken, error)
- type MatrixSyncer
- type NetworkValidator
- type Policy
- type RateLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMC ¶ added in v2.1.0
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
GetMembers provides a mock function with given fields: _a0
func (*BMC) GetNotifyExtras ¶ added in v2.2.0
GetNotifyExtras provides a mock function with given fields:
func (*BMC) GetNotifyMembers ¶ added in v2.2.0
GetNotifyMembers provides a mock function with given fields:
func (*BMC) GetNotifySupporters ¶ added in v2.2.0
GetNotifySupporters 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
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 ¶
Extension is an autogenerated mock type for the Extension type
func (*Extension) ExecuteHTML ¶
ExecuteHTML provides a mock function with given fields: name, data
type FormHandler ¶
FormHandler is an autogenerated mock type for the FormHandler type
func (*FormHandler) HandlePOST ¶
HandlePOST provides a mock function with given fields: _a0, _a1
type FormSender ¶
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 ¶
SendWebhook provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
type HTTPServer ¶
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 ¶
IPMatcher is an autogenerated mock type for the IPMatcher type
type Logger ¶
Logger is an autogenerated mock type for the Logger type
type MatrixBot ¶
MatrixBot is an autogenerated mock type for the MatrixBot type
func (*MatrixBot) SendMessage ¶
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
type MatrixClient ¶
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 ¶
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 ¶
func (_m *MatrixRegistrationClient) GetList() ([]models.RegistrationToken, error)
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 ¶
func (_m *MatrixRegistrationClient) GetStatus(_a0 string) (*models.RegistrationToken, error)
GetStatus provides a mock function with given fields: _a0
type MatrixSyncer ¶
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
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 RateLimiter ¶ added in v2.1.0
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