This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
ui/go/the/globals.go

31 lines
625 B
Go
Raw Permalink Normal View History

2018-11-22 00:01:17 +00:00
package the
import (
"cwtch.im/cwtch/app"
"cwtch.im/cwtch/event"
2018-11-28 22:14:02 +00:00
libPeer "cwtch.im/cwtch/peer"
"git.openprivacy.ca/openprivacy/libricochet-go/connectivity"
2019-07-31 18:59:43 +00:00
"sync"
2018-11-28 22:14:02 +00:00
)
2018-11-22 00:01:17 +00:00
// Terrible, to be replaced when proper profile/password management comes in ~ 0.2
const AppPassword = "be gay do crime"
2018-11-22 00:01:17 +00:00
var CwtchApp app.Application
var CwtchService app.ApplicationService
var EventBus event.Manager
var AppBus event.Manager
var ACN connectivity.ACN
2018-11-22 00:01:17 +00:00
var Peer libPeer.CwtchPeer
var CwtchDir string
var IPCBridge event.IPCBridge
2019-02-11 21:05:01 +00:00
type AckId struct {
ID string
2019-07-31 22:35:35 +00:00
Peer string
Ack bool
Error bool
2019-02-11 21:05:01 +00:00
}
2019-07-31 18:59:43 +00:00
var AcknowledgementIDs sync.Map