prosody-password/internal/services/prosody/prosody.go

20 lines
391 B
Go
Raw Normal View History

2023-07-05 22:07:10 +02:00
package prosody
type Prosody struct {
binPath string
accountsPath string
}
// /var/lib/prosody/xmpp%%2eurkob%%2ecom/accounts/
func NewProsody(domain string) *Prosody {
return &Prosody{
binPath: "/usr/bin/prosodyctl",
accountsPath: "/var/lib/prosody/" + domain + "/accounts/",
}
}
func (p *Prosody) WithBinPath(binPath string) *Prosody {
p.binPath = binPath
return p
}