matrix

package
v0.0.0-...-3ba3d46 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NEBStore

type NEBStore struct {
	mautrix.InMemoryStore
	Database     database.Storer
	ClientConfig api.ClientConfig
}

NEBStore implements the mautrix.Storer interface.

It persists the next batch token in the database, and includes a ClientConfig for the client.

func (*NEBStore) LoadNextBatch

func (s *NEBStore) LoadNextBatch(userID id.UserID) string

LoadNextBatch loads from the database.

func (*NEBStore) SaveNextBatch

func (s *NEBStore) SaveNextBatch(userID id.UserID, nextBatch string)

SaveNextBatch saves to the database.

type StarterLinkMessage

type StarterLinkMessage struct {
	Body string
	Link string
}

StarterLinkMessage represents a message with a starter_link custom data.

func (StarterLinkMessage) MarshalJSON

func (m StarterLinkMessage) MarshalJSON() ([]byte, error)

MarshalJSON converts this message into actual event content JSON.

Jump to

Keyboard shortcuts

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