matrix

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package matrix implements the matrix daemon service. Spec: https://matrix.org/docs/spec/

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("matrix: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Matrix represents a Matrix service in the application

func New

func New(ctx context.Context, opts service.Options) (*Matrix, error)

New Matrix struct.

func (*Matrix) Serve

func (m *Matrix) Serve() error

Serve loop request direct messages from the Matrix server. Serve returns an error.

func (*Matrix) Shutdown added in v0.16.0

func (m *Matrix) Shutdown() error

Shutdown shuts down the Matrix service, it always retuan a nil error.

Jump to

Keyboard shortcuts

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