Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTexts ¶
ExtractTexts extracts the original and reply texts from a formatted body of an event.
Types ¶
type Service ¶
type Service interface { Register(username, password string) (err error) Login(username, password string) (err error) Auth() SendMessage(roomID id.RoomID, text string) (*mautrix.RespSendEvent, error) GetRepliedEvent(evt *event.Event) (*event.Event, error) IsPrivateRoom(roomID id.RoomID) (bool, error) }
Service defines the methods for interacting with the Matrix Synapse server.
func New ¶
func New(db db.Service, snetSyncer syncer.SnetSyncer, grpcManager *grpcmanager.GRPCClientManager, eth blockchain.Ethereum) Service
New creates a new instance of the service and initializes the Matrix client.
Click to show internal directories.
Click to hide internal directories.