package event // Type captures the definition of many common Cwtch application events type Type string // Defining Common Event Types const ( StatusRequest = Type("StatusRequest") ProtocolEngineStatus = Type("ProtocolEngineStatus") PeerRequest = Type("PeerRequest") BlockPeer = Type("BlockPeer") JoinServer = Type("JoinServer") ProtocolEngineStartListen = Type("ProtocolEngineStartListen") ProtocolEngineStopped = Type("ProtocolEngineStopped") InvitePeerToGroup = Type("InvitePeerToGroup") NewGroupInvite = Type("NewGroupInvite") SendMessageToGroup = Type("SendMessagetoGroup") EncryptedGroupMessage = Type("EncryptedGroupMessage") NewMessageFromGroup = Type("NewMessageFromGroup") SendMessageToPeer = Type("SendMessageToPeer") NewMessageFromPeer = Type("NewMessageFromPeer") ) // Field defines common event attributes type Field string // Defining Common Field Types const ( TimestampSent = Field("TimestampSent") TimestampReceived = Field("TimestampReceived") )