matrix

package
Version: v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Scheme = "matrix"

Scheme is the identifying part of this service's configuration URL

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	standard.EnumlessConfig

	User       string `optional:""`
	Password   string
	DisableTLS bool `key:"disableTLS" default:"No"`
	Host       string
	Rooms      []string `key:"rooms,room" optional:""`
	Title      string   `key:"title" default:""`
}

Config is the configuration for the matrix service

func (*Config) GetURL

func (c *Config) GetURL() *url.URL

GetURL returns a URL representation of it's current field values

func (*Config) SetURL

func (c *Config) SetURL(url *url.URL) error

SetURL updates a ServiceConfig from a URL representation of it's field values

type Service

type Service struct {
	standard.Standard
	// contains filtered or unexported fields
}

Service providing Matrix as a notification service

func (*Service) Initialize

func (s *Service) Initialize(configURL *url.URL, logger t.StdLogger) error

Initialize loads ServiceConfig from configURL and sets logger for this Service

func (*Service) Send

func (s *Service) Send(message string, params *t.Params) error

Send notification

Jump to

Keyboard shortcuts

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