UiServerExt extension
- on
Methods
-
announcerInfoFuture(
) → Future< Message?> -
Available on ZeroNet, provided by the UiServerExt extension
Return stats for current Site -
certAddFuture(
String domain, String authType, String authUserName, String cert) → Future< MessageOrPromptOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Returns "ok", "Not changed" or {"error": error_message}. -
certSelectFuture(
{List< String> ? acceptedDomains, bool acceptAny = false, String? acceptedPattern}) → Future<PromptResult> -
Available on ZeroNet, provided by the UiServerExt extension
Return: Prompt with list of certs available. -
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 innerPath, {bool stats = false}) → Future< MessageOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: List of file and directory names -
fileDeleteFuture(
String innerPath) → Future< MessageOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: "ok" on success, the error message otherwise. -
fileGetFuture(
String innerPath, {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 innerPath) → Future< MessageOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: List of files in the directory (recursive). -
fileNeedFuture(
String innerPath, {int timeout = 300, int priority = 6}) → Future< MessageOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: "ok" on successful download. -
fileQueryFuture(
String dirInnerPath, {String query = ''}) → Future< Message> -
Available on ZeroNet, provided by the UiServerExt extension
Return: Matched content as an array. -
fileRulesFuture(
String innerPath) → Future< Message> -
Available on ZeroNet, provided by the UiServerExt extension
Return: Matched content as an array. -
fileWriteFuture(
String innerPath, String contentBase64, [bool ignoreBadFiles = 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
Return: All information about the server -
siteInfoFuture(
{String? fileStatus}) → Future< MessageOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: All information about the site If return value isMsg you can convert result to siteInfo with siteInfo extension method final siteInfo = result.message!.siteInfo; or using SiteInfo.fromJson() method final siteInfo = SiteInfo.fromJson(result.message!.result); -
sitePublishFuture(
{String? privatekey, String? innerPath, bool sign = true, bool removeMissingOptional = false, bool updateChangedFiles = false}) → Future< MessageOrPromptOrError> -
Available on ZeroNet, provided by the UiServerExt extension
Return: "ok" on success, the error message otherwise. -
siteReloadFuture(
[String? innerPath]) → Future< Message> -
Available on ZeroNet, provided by the UiServerExt extension
Return: "ok" on success -
siteSignFuture(
{String? privatekey, String? innerPath, bool removeMissingOptional = false, bool updateChangedFiles = false, bool responseOk = 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: MessageOrError. -
userGetGlobalSettingsFuture(
) → Future< Message> -
Available on ZeroNet, provided by the UiServerExt extension
Returns: User's global settings saved using userSetGlobalSettings(ADMIN). -
userGetSettingsFuture(
) → Future< Message> -
Available on ZeroNet, provided by the UiServerExt extension
Return: 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.