module main import time // OpenRPCMethod represents a method in an OpenRPC specification pub struct OpenRPCMethod { pub: name string description string summary string } // OpenRPCSpec represents an OpenRPC specification pub struct OpenRPCSpec { pub: title string description string version string methods []OpenRPCMethod } // Mock data functions // get_all_openrpc_specs returns a list of mock OpenRPC specifications pub fn get_all_openrpc_specs() []OpenRPCSpec { return [ OpenRPCSpec{ title: 'Process Manager' description: 'API for managing system processes' version: '1.0.0' methods: [ OpenRPCMethod{ name: 'get_processes' description: 'Get a list of all processes' summary: 'List processes' }, OpenRPCMethod{ name: 'kill_process' description: 'Kill a process by PID' summary: 'Kill process' } ] }, OpenRPCSpec{ title: 'Job Manager' description: 'API for managing jobs' version: '1.0.0' methods: [ OpenRPCMethod{ name: 'get_jobs' description: 'Get a list of all jobs' summary: 'List jobs' }, OpenRPCMethod{ name: 'get_job' description: 'Get a job by ID' summary: 'Get job' }, OpenRPCMethod{ name: 'create_job' description: 'Create a new job' summary: 'Create job' } ] } ] }