# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
AllocateFile Allocates a file on disk at path with size in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ByteCountSI converts filesize in bytes to human readable text.
No description provided by the author
CloseDb .
DbReadSetting Reads a key and returns value.
DbWriteSetting Stores or updates a key with a given value.
DownloadFileByHash Downloads a file by providing a hash.
FileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
FilterSeedRPCServer gets the state of rpc node list, remove unavailable nodes (network failure or not in persist finish state), and sort available ones by latency.
GetAccountAddress returns current client address.
GetBootstrapRPC returns the rpc collection to connect to nkn.
GetDownloadFolderPath uses the folder setting, or default donwload folder fallback.
GetFileChunkMapString returns the chunkmap in hex for a file given by hash.
GetFileChunkMapStringByHash returns the chunkmap in hex for a file given by hash.
No description provided by the author
GetTopicInfo returns info about the topic given.
No description provided by the author
No description provided by the author
HashFile generates hash for file given filepath.
InitializeAccount will create an account file and return it.
InitializeClient Initiates the surge client and instantiates connection with the NKN network.
InitializeDb initializes db.
No description provided by the author
InitializeLog init for log file.
No description provided by the author
No description provided by the author
Listen will listen to incoming requests for chunks.
No description provided by the author
OpenFileByHash opens a file with OS default application for object type.
OpenFolderByHash opens the folder containing the file by hash in os.
OpenLogFile opens a log file with OS default application for object type.
OpenOSPath Open a file, directory, or URI using the OS's default application for that object type.
ParsePayloadString parses payload of files.
PersistRPC will persist all current nkn RPC connections for future bootstrapping the client.
RecoverAndLog Recovers and then logs the stack.
RemoveFileByHash removes file from surge db and optionally from disk.
No description provided by the author
No description provided by the author
RequestChunk sends a request to an address for a specific chunk of a specific file.
SearchLocalFile runs a paged query.
SearchRemoteFile runs a paged query.
SeedFilepath generates everything needed to seed a file.
No description provided by the author
SessionRead reads from session.
SessionWrite writes to session.
SetFilePause sets a file IsPaused state for by file hash.
SetVisualMode Sets the visualmode.
StartClient Starts the surge client.
StopClient Stops the surge client and cleans up.
TopicEncode .
TransmitChunk tranmits target file chunk to address.
ValidateBalanceForTransaction returns a boolean for whether there is enough balance to make a transation.
No description provided by the author
WailsBind is a binding function at startup.
No description provided by the author
No description provided by the author
No description provided by the author
WriteChunk writes a chunk to disk.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
FrontendReady flags whether frontend is ready to receive events etc.
ListedFiles are remote files that can be downloaded.
No description provided by the author
# Structs
No description provided by the author
MiddlewareFunctions struct to hold wails runtime for all middleware implementations.
NumClientsStruct struct to hold number of online clients.
PagedQueryResult is a paging query result for file searches.
PagedQueryResult is a paging query result for file searches.
No description provided by the author
# Type aliases
No description provided by the author