Documentation ¶
Index ¶
- type EmailSender
- type Extension
- type FormHandler
- type Linkpearl
- func (_m *Linkpearl) FindEventBy(ctx context.Context, roomID id.RoomID, fieldValue map[string]string, ...) *event.Event
- func (_m *Linkpearl) GetClient() *mautrix.Client
- func (_m *Linkpearl) Send(ctx context.Context, roomID id.RoomID, content interface{}) (id.EventID, error)
- func (_m *Linkpearl) SendFile(ctx context.Context, roomID id.RoomID, req *mautrix.ReqUploadMedia, ...) error
- func (_m *Linkpearl) SendNotice(ctx context.Context, roomID id.RoomID, message string, ...)
- func (_m *Linkpearl) Start(ctx context.Context, optionalStatusMsg ...string) error
- func (_m *Linkpearl) Stop(ctx context.Context)
- type Sender
- type Validator
- func (_m *Validator) A(_a0 string) bool
- func (_m *Validator) CNAME(_a0 string) bool
- func (_m *Validator) Domain(_a0 string) bool
- func (_m *Validator) DomainString(_a0 string) bool
- func (_m *Validator) Email(_a0 string, _a1 ...net.IP) bool
- func (_m *Validator) GetBase(_a0 string) string
- func (_m *Validator) MX(_a0 string) bool
- func (_m *Validator) NS(_a0 string, _a1 ...string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶ added in v1.1.0
EmailSender is an autogenerated mock type for the EmailSender type
func NewEmailSender ¶ added in v1.3.1
func NewEmailSender(t interface { mock.TestingT Cleanup(func()) }) *EmailSender
NewEmailSender creates a new instance of EmailSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Extension ¶
Extension is an autogenerated mock type for the Extension type
func NewExtension ¶ added in v1.3.1
NewExtension creates a new instance of Extension. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type FormHandler ¶
FormHandler is an autogenerated mock type for the FormHandler type
func NewFormHandler ¶ added in v1.3.1
func NewFormHandler(t interface { mock.TestingT Cleanup(func()) }) *FormHandler
NewFormHandler creates a new instance of FormHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Linkpearl ¶
Linkpearl is an autogenerated mock type for the Linkpearl type
func NewLinkpearl ¶ added in v1.3.1
NewLinkpearl creates a new instance of Linkpearl. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Linkpearl) FindEventBy ¶ added in v1.4.0
func (_m *Linkpearl) FindEventBy(ctx context.Context, roomID id.RoomID, fieldValue map[string]string, fromToken ...string) *event.Event
FindEventBy provides a mock function with given fields: ctx, roomID, fieldValue, fromToken
func (*Linkpearl) Send ¶
func (_m *Linkpearl) Send(ctx context.Context, roomID id.RoomID, content interface{}) (id.EventID, error)
Send provides a mock function with given fields: ctx, roomID, content
func (*Linkpearl) SendFile ¶ added in v1.3.0
func (_m *Linkpearl) SendFile(ctx context.Context, roomID id.RoomID, req *mautrix.ReqUploadMedia, msgtype event.MessageType, relations ...*event.RelatesTo) error
SendFile provides a mock function with given fields: ctx, roomID, req, msgtype, relations
func (*Linkpearl) SendNotice ¶ added in v1.4.0
func (_m *Linkpearl) SendNotice(ctx context.Context, roomID id.RoomID, message string, relates ...*event.RelatesTo)
SendNotice provides a mock function with given fields: ctx, roomID, message, relates
type Sender ¶
Sender is an autogenerated mock type for the Sender type
func NewSender ¶ added in v1.3.1
NewSender creates a new instance of Sender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Validator ¶ added in v1.3.0
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶ added in v1.3.1
NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Validator) DomainString ¶ added in v1.3.0
DomainString provides a mock function with given fields: _a0
func (*Validator) Email ¶ added in v1.3.0
Email provides a mock function with given fields: _a0, _a1