forked from sunglocto/lambda
26 lines
341 B
Go
26 lines
341 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
|
|
}
|