Files
lambda/types.go
T
2026-05-18 06:27:55 +01:00

45 lines
852 B
Go

package main
import (
"github.com/diamondburned/gotk4/pkg/gtk/v4"
"mellium.im/xmpp/color"
"sync"
"gosrc.io/xmpp/stanza"
)
type chatTab struct {
isMuc bool
msgs *gtk.ListBox
name string
current_nick string
muc_presence *stanza.Presence
}
type lambdaConfig struct {
Server string
Username string
Resource string
Password string
Insecure bool
Nick string
JoinBookmarks bool
CVD color.CVD
Identicons bool
Debug bool
ShowPresenceUpdates bool
CompactMode bool
CustomNicks map[string]string
}
type mucUnit struct {
// key: Resource
// value: last user presence
Members sync.Map
}
type userUnit struct {
// key: Resource
// value: last presence of this device
Devices sync.Map
}