matrix

package
v0.0.0-...-a167794 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package matrix helpful functions for repetitive tasks in the mautrix go module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaTrix

type MaTrix struct {
	Client  *mautrix.Client
	DBstore *crypto.SQLCryptoStore
	Olm     *crypto.OlmMachine
	// contains filtered or unexported fields
}

MaTrix struct to hold our objects

func (*MaTrix) MaDBclose

func (t *MaTrix) MaDBclose()

MaDBclose delete matrix SQL cryptostore

func (*MaTrix) MaJoinRoom

func (t *MaTrix) MaJoinRoom(room string)

MaJoinRoom to join a room

func (*MaTrix) MaLogin

func (t *MaTrix) MaLogin(host string, user string, pass string)

MaLogin client login to matrix

func (*MaTrix) MaLogout

func (t *MaTrix) MaLogout() *mautrix.RespLogout

MaLogout matrix client logout

func (*MaTrix) MaUserEnc

func (t *MaTrix) MaUserEnc(user string, pass string, host string)

MaUserEnc create matrix SQL cryptostorea & user olm machine

func (*MaTrix) SendEncrypted

func (t *MaTrix) SendEncrypted(room string, text string) id.EventID

SendEncrypted text to a room

Jump to

Keyboard shortcuts

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