UiServerExt extension

on

Methods

announcerInfoFuture() Future<Message?>

Available on ZeroNet, provided by the UiServerExt extension

Return stats for current Site
certAddFuture(String domain, String auth_type, String auth_user_name, String cert) Future<MessageOrPromptOrError>

Available on ZeroNet, provided by the UiServerExt extension

Returns "ok", "Not changed" or {"error": error_message}.
certSelectFuture({List<String>? accepted_domains, bool accept_any = false, String? accepted_pattern}) Future<void>

Available on ZeroNet, provided by the UiServerExt extension

Return: None.
channelJoinFuture(List<String> channels) Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: None.
dbQueryFuture(String query, [Map sqlparams = const {}]) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: Result of the query as an array.
dirListFuture(String inner_path, {bool stats = false}) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: List of file and directory names
fileDeleteFuture(String inner_path) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success, the error message otherwise.
fileGetFuture(String inner_path, {bool required_ = true, String format = 'text', int timeout = 300, int priority = 6}) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: The content of the file.
fileListFuture(String inner_path) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: List of files in the directory (recursive).
fileNeedFuture(String inner_path, {int timeout = 300, int priority = 6}) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on successful download.
fileQueryFuture(String dir_inner_path, {String query = ''}) Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: Matched content as an array.
fileRulesFuture(String inner_path) Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: Matched content as an array.
fileWriteFuture(String inner_path, String content_base64, [bool ignore_bad_files = false]) Future<MessageOrPromptOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success, the error message otherwise.
pingFuture() Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: pong
serverInfoFuture() Future<ServerInfo>

Available on ZeroNet, provided by the UiServerExt extension

siteInfoFuture({String? file_status}) Future<SiteInfo>

Available on ZeroNet, provided by the UiServerExt extension

sitePublishFuture({String? privatekey, String? inner_path, bool sign = true, bool remove_missing_optional = false, bool update_changed_files = false}) Future<MessageOrPromptOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success, the error message otherwise.
siteReloadFuture() Future<void>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success TODO! Add inner_path parameter
siteSignFuture({String? privatekey, String? inner_path, bool remove_missing_optional = false, bool update_changed_files = false, bool response_ok = true}) Future<MessageOrPromptOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success, the error message otherwise.
siteUpdateFuture(String address, {bool checkFiles = false, bool announce = false, int? since}) Future<MessageOrError>

Available on ZeroNet, provided by the UiServerExt extension

Return: None. TODO! Add check_files, since, announce parameters
userGetSettingsFuture() Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: The user specific site's settings saved using userSetSettings.
userSetSettingsFuture(Map settings) Future<Message>

Available on ZeroNet, provided by the UiServerExt extension

Return: "ok" on success.