moonbit-observer-proton-shared

    Shared typed contracts for Proton App.

    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    9 hours ago
    Downloads
    6

    #moonbit-observer-proton(模块)

    observer-proton workspace 三模块之一。总览/开发/真网验证见仓根 ../README.md(桌面观察器 GUI 形——proton isomorphic 路)。

    ViewError

    视图错误(数据面诚实拒——ShapeMismatch 形;frontend/backend 双端同形)

    ViewError::equal

    fn ViewError::equal(ViewError, ViewError) -> Bool

    ViewError::not_equal

    fn ViewError::not_equal(x : ViewError, y : ViewError) -> Bool

    ViewError::to_json

    EtsRow

    ETS 表行(表名+大小——骨架形)

    EtsRow::equal

    fn EtsRow::equal(EtsRow, EtsRow) -> Bool

    EtsRow::not_equal

    fn EtsRow::not_equal(x : EtsRow, y : EtsRow) -> Bool

    EtsRow::to_json

    EtsRow::to_repr

    MemorySummary

    pub(all) struct MemorySummary {
    total : Int
    processes : Int
    ets : Int
    atom : Int
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    内存摘要(erlang:memory() 词对四键摘)

    MemorySummary::equal

    MemorySummary::not_equal

    fn MemorySummary::not_equal(x : MemorySummary, y : MemorySummary) -> Bool

    NodeRequest

    命令请求形(观察器五词——node 指示+空载荷形)

    NodeRequest::equal

    fn NodeRequest::equal(NodeRequest, NodeRequest) -> Bool

    NodeRequest::not_equal

    fn NodeRequest::not_equal(x : NodeRequest, y : NodeRequest) -> Bool

    ObserverSnapshot

    观察器快照(五面拉全链载荷——refresh 编排对位)

    ObserverSnapshot::equal

    ObserverSnapshot::not_equal

    fn ObserverSnapshot::not_equal(x : ObserverSnapshot, y : ObserverSnapshot) -> Bool

    PortSummary

    端口摘要(端口数+端口名清单——骨架形)

    PortSummary::equal

    fn PortSummary::equal(PortSummary, PortSummary) -> Bool

    PortSummary::not_equal

    fn PortSummary::not_equal(x : PortSummary, y : PortSummary) -> Bool

    ProcessRow

    pub(all) struct ProcessRow {
    pid : String
    name : String
    memory_bytes : Int
    message_queue_len : Int
    reductions : Int
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    进程行(pid 标识+name+内存+消息队列长——五键简化路 v2)

    ProcessRow::equal

    fn ProcessRow::equal(ProcessRow, ProcessRow) -> Bool

    ProcessRow::not_equal

    fn ProcessRow::not_equal(x : ProcessRow, y : ProcessRow) -> Bool

    ProcessRow::to_json

    fetch_processes

    命令描述符五词(proton_contract.Command[Request, Reply] 形—— 照 todo_contract list_todos 形;backend registrar.bind 对位)