Files
lambda/types.go

34 lines
510 B
Go
Raw Normal View History

2026-01-30 15:56:58 +00:00
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
2026-03-10 16:48:10 +00:00
Resource string
Password string
Insecure bool
Nick string
JoinBookmarks bool
2026-01-30 15:56:58 +00:00
}
type mucUnit struct {
// key: OccupantID
// value: last user presence
Members sync.Map
}
type userUnit struct {
2026-01-31 15:08:54 +00:00
// key: Resource
// value: last presence of this device
Devices sync.Map
}