matrix

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatrixOutput

type MatrixOutput struct {
	plugin.Base
	// contains filtered or unexported fields
}

MatrixOutput sends selected events as m.text room messages.

func New

func New(options ...Option) *MatrixOutput

New creates a Matrix output. StartContext validates the configuration.

func (*MatrixOutput) Role

func (m *MatrixOutput) Role() plugin.PluginType

func (*MatrixOutput) Start

func (m *MatrixOutput) Start() error

func (*MatrixOutput) StartContext

func (m *MatrixOutput) StartContext(ctx context.Context) error

func (*MatrixOutput) Stop

func (m *MatrixOutput) Stop() error

type Option

type Option func(*MatrixOutput)

func WithAccessToken

func WithAccessToken(token string) Option

func WithEventTypes

func WithEventTypes(types map[string]bool) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

func WithHomeserver

func WithHomeserver(url string) Option

func WithLogger

func WithLogger(logger plugin.Logger) Option

func WithMaxRetries

func WithMaxRetries(n int) Option

func WithRooms

func WithRooms(rooms ...string) Option

Jump to

Keyboard shortcuts

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