37 lines
686 B
Julia
37 lines
686 B
Julia
|
module MatrixChat
|
||
|
|
||
|
using OhMyREPL
|
||
|
using HTTP
|
||
|
using JSON
|
||
|
using Nettle
|
||
|
using Dates
|
||
|
|
||
|
include("types.jl")
|
||
|
include("users.jl")
|
||
|
include("rooms.jl")
|
||
|
include("sync.jl")
|
||
|
include("utils.jl")
|
||
|
include("user.jl")
|
||
|
include("repl.jl")
|
||
|
|
||
|
# types
|
||
|
export MatrixServer, MatrixUser, MatrixSync, MatrixMsg
|
||
|
|
||
|
# functions
|
||
|
export get, post, put, upload, download,
|
||
|
# administration
|
||
|
new_user,
|
||
|
# rooms
|
||
|
listjoined, createroom, invite, getroomevent, getroomname,
|
||
|
joinroom, checkifjoin, history,
|
||
|
roomhistory, updateroomlastbatch,
|
||
|
send, setavatar, sync, sync!,
|
||
|
# users
|
||
|
getdisplayname,
|
||
|
# sync
|
||
|
background_sync, stop_sync!, set_hook!, remove_hook!
|
||
|
|
||
|
export testrepl
|
||
|
|
||
|
end # module
|