mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-06-23 05:26:20 +08:00
- Added a Go scheduler plugin demonstrating CLIProxyAPI capabilities, such as `plugin.register`, `plugin.reconfigure`, and `scheduler.pick`. - Implemented methods for plugin configuration, built-in scheduler delegation (`fill-first`, `round-robin`), dynamic candidate selection, and error handling. - Extended `pluginhost` with scheduler handling, candidate normalization, and fallback mechanisms. - Included examples, tests, and detailed documentation for scheduler usage and implementation.
11 lines
237 B
Modula-2
11 lines
237 B
Modula-2
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/scheduler/go
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
|