config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	XMPPServer    string // e.g. "xmpp.example.com:5347"
	XMPPDomain    string // e.g. "sms.example.com"
	XMPPSecret    string
	DefaultPrefix string // e.g. "+1"; prepended to phone numbers that don't start with +
	PublicURL     string
	Users         map[string]UserConfig // Map from bare JID -> UserConfig
	Providers     map[string]ProviderConfig
	Rosters       map[string]string // Map from bare JID -> CardDAV URL
}

func FromDirectory

func FromDirectory(dirpath string) (*Config, error)

type ProviderConfig

type ProviderConfig struct {
	Type   string
	Params map[string]string
}

type UserConfig

type UserConfig struct {
	PhoneNumber string // e.g. "+19255551212"
	Provider    string
}

Jump to

Keyboard shortcuts

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