package
0.0.0-20250303151121-0ec78b47ee75
Repository: https://github.com/netsepio/erebrus.git
Documentation: pkg.go.dev

# Functions

ActivateNode sets the node status to Online.
No description provided by the author
DeactivateNode deactivates the node in the contract.
DeleteClient from disk.
Execute adds all child commands to the root command and sets flags appropriately.
GenerateEthereumWalletAddress generates an Ethereum wallet address from the given mnemonic.
No description provided by the author
GenerateWalletAddressAptos generates an Aptos wallet address from the given mnemonic.
GenerateWalletAddressSolana generates a Solana wallet address from the given mnemonic.
GenerateWalletAddressSui generates a Sui wallet address from the given mnemonic.
GetAllReservedIps the list of all reserved IPs, client and server.
No description provided by the author
No description provided by the author
GetNodeStatus retrieves the current status of the node from the contract.
GetPort returns available port based on random generation.
Method to get the server status.
Init initializes json file for caddy.
No description provided by the author
Function to load the node details from the environment and save it to the global variable.
error response message.
success response message.
ReadClient client by id.
No description provided by the author
ReadClients all clients.
ReadServer object, create default one.
ReadWgConfigFile return content of wireguard config file.
RegisterClient client with all necessary data.
No description provided by the author
ScanPort checks avilability of port.
UpdateClient preserve keys.
UpdateServer keep private values from existing one.
UpdateServerConfigWg in wg format.
Writefile appends data to file.

# Variables

WG_CONF_DIR.
No description provided by the author
var AppConfDir = "./conf".
No description provided by the author
These variables will be set at build time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These variables will be set at build time.
No description provided by the author

# Structs

ClientStats represents the bandwidth statistics of a WireGuard client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NodeStatus represents the current status of a node.
No description provided by the author
No description provided by the author
SystemMetrics represents the system metrics for checkpoints.