MatrixChat.jl/src/MatrixChat.jl

37 lines
689 B
Julia

module MatrixChat
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")
include("tui.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