### Initialize and Use PasarGuard Node Bridge Client Source: https://github.com/pasarguard/node_bridge/blob/main/README.md Example demonstrating how to initialize the node client, start the node with a configuration, and retrieve node information and system statistics. Ensure you replace the placeholder API key with your actual key. ```go package main import ( "fmt" "log" "github.com/google/uuid" "github.com/pasarguard/node_bridge" "github.com/pasarguard/node_bridge/common" ) func main() { // Initialize the node client apiKey := uuid.New() // Replace with your actual API key node, err := node_bridge.New("127.0.0.1", node_bridge.GRPC, node_bridge.WithPort(8080), node_bridge.WithAPIKey(apiKey), ) if err != nil { log.Fatal(err) } // Start the node with a configuration config := `{"inbounds": [], "outbounds": []}` // Your node configuration err = node.Start(config, common.BackendType_XRAY, nil, 60) if err != nil { log.Fatal(err) } // Get node information info, err := node.Info() if err != nil { log.Fatal(err) } fmt.Printf("Node Version: %s\n", info.NodeVersion) fmt.Printf("Core Version: %s\n", info.CoreVersion) // Get system stats stats, err := node.GetSystemStats() if err == nil { fmt.Printf("CPU Usage: %.2f%%\n", stats.CpuUsage) } } ``` -------------------------------- ### Install PasarGuard Node Bridge Source: https://github.com/pasarguard/node_bridge/blob/main/README.md Use this command to install the PasarGuard Node Bridge Go library. ```bash go get github.com/pasarguard/node_bridge ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.