init app
This commit is contained in:
19
internal/services/prosody/prosody.go
Normal file
19
internal/services/prosody/prosody.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user