Documentation
¶
Index ¶
- func CallRemoteTool(peerIDStr string, toolName string, argsJSON string) string
- func EnrollNode(dataDir string, hubURL string, jwt string, allowLoopback bool) error
- func FetchHubInfoJSON(hubURL string) string
- func GetMeshInfo() string
- func GetNodeID() string
- func IsEnrolled(dataDir string) byte
- func StartNode(configJSON string) error
- func StopNode() error
- type MobileConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallRemoteTool ¶
CallRemoteTool calls an MCP tool on a remote peer and returns the result as a JSON string.
func EnrollNode ¶
EnrollNode enrolls a node.
func FetchHubInfoJSON ¶
FetchHubInfoJSON fetches hub info and returns it as a JSON string. If an error occurs, it returns a JSON object with an "error" field.
func IsEnrolled ¶
IsEnrolled checks if the node is enrolled (has a valid identity).
Types ¶
type MobileConfig ¶
type MobileConfig struct {
DataDir string `json:"dataDir"`
HubURL string `json:"hubURL"`
MeshID string `json:"meshID"`
BindAddr string `json:"bindAddr"`
ApiToken string `json:"apiToken"`
LogLevel string `json:"logLevel"`
DiscoveryInterval string `json:"discoveryInterval"`
ListenAddrs string `json:"listenAddrs"` // comma-separated
AllowLoopback bool `json:"allowLoopback"`
EnableRelay bool `json:"enableRelay"`
}
MobileConfig holds simple configuration options for the mobile agent.
Click to show internal directories.
Click to hide internal directories.