mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-04-24 16:32:13 +00:00
* Switch to app.config based deployment * Rewrite user online status checks to peer is_connected api * Rewrite fluentpad into aquamarine
25 lines
533 B
Plaintext
25 lines
533 B
Plaintext
import "@fluencelabs/aqua-lib/builtin.aqua"
|
|
import "common.aqua"
|
|
|
|
data User:
|
|
peer_id: PeerId
|
|
relay_id: PeerId
|
|
name: string
|
|
|
|
data GetUsersServiceResult:
|
|
users: []User
|
|
ret_code: s32
|
|
err_msg: string
|
|
|
|
data AuthResult:
|
|
ret_code: s32
|
|
err_msg: string
|
|
is_authenticated: bool
|
|
|
|
service UserList:
|
|
is_authenticated: -> AuthResult
|
|
get_users: -> GetUsersServiceResult
|
|
join: User -> EmptyServiceResult
|
|
leave: string -> EmptyServiceResult -- user peerId
|
|
is_exists: string -> () -- user peerId
|