Module rust_rsm::rsm::oam

source ·
Expand description

#oam oam is a lightweight operation and maintenance frame work for RSM oam provide REST API to external system, and each component can register oam call back function oam’s REST Server normally bind to 127.0.0.1:12000, the API URL with a /rsm prefix **curl http://127.0.0.1:12000/rsm/**help get task running status, *curl http://127.0.0.1:12000/rsm/task?1:2 get component configuration,curl http://127.0.0.1:12000/rsm/component?1

application(component) can register their own REST API by provide the URL and callback function if the app register the url with “/sample”, then the complete REST URL should be “http://127.0.0.1:12000/rsm/sample”

Modules

Structs

the OAM Callback function should return this structure

Enums

Functions

register a module callback, urls is a list of rest api url, the prefix /rsm and id following a “?” are not included
init and start oam server, using configured socket addr

Type Definitions

Application Callback, if app want to register to OAM, must implement this callback function