Files
lambda/types.go
2026-02-28 16:24:37 +00:00

34 lines
505 B
Go

package main
import (
"github.com/diamondburned/gotk4/pkg/gtk/v4"
"sync"
)
type chatTab struct {
isMuc bool
msgs *gtk.ListBox
}
type lambdaConfig struct {
Server string
Username string
Resource string
Password string
Insecure bool
Nick string
JoinBookmarks bool
}
type mucUnit struct {
// key: OccupantID
// value: last user presence
Members sync.Map
}
type userUnit struct {
// key: Resource
// value: last presence of this device
Devices sync.Map
}