matrix

package
v0.0.0-...-e61e643 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 5 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 {
	gomatrix.InMemoryStore
	Database     database.Storer
	ClientConfig api.ClientConfig
}

NEBStore implements the gomatrix.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 string) string

LoadNextBatch loads from the database.

func (*NEBStore) SaveNextBatch

func (s *NEBStore) SaveNextBatch(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