Files
lambda/types.go

32 lines
444 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
Password string
Insecure bool
Nick string
}
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
}