diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-16 19:30:49 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-16 19:30:49 +0100 |
commit | 046ec6380b7bb363e537ade7fd254b5505dde32d (patch) | |
tree | 05d8778d02a0c815d75491937e1e41a906450a58 /mxlib/api.go | |
parent | 225fc84f097aa615239df6deece647a19794234a (diff) | |
download | easybridge-046ec6380b7bb363e537ade7fd254b5505dde32d.tar.gz easybridge-046ec6380b7bb363e537ade7fd254b5505dde32d.zip |
Some infrastructure
Diffstat (limited to 'mxlib/api.go')
-rw-r--r-- | mxlib/api.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mxlib/api.go b/mxlib/api.go new file mode 100644 index 0000000..59e1267 --- /dev/null +++ b/mxlib/api.go @@ -0,0 +1,18 @@ +package mxlib + +import ( + _ "encoding/json" +) + +type Transaction struct { + Events []Event `json:"events"` +} + +type Event struct { + Content map[string]string `json:"content"` + Type string `json:"type"` + EventId string `json:"event_id"` + RoomId string `json:"room_id"` + Sender string `json:"sender"` + OriginServerTs int `json:"origin_server_ts"` +} |