Skip to main content

Module opc

Module opc 

Source
Expand description

OPC DA diagnostic routes: GET /api/opc/servers, GET /api/opc/capabilities, GET /api/opc/browse, DELETE /api/opc/browse/sessions/:id, GET /api/opc/search, GET /api/opc/read, and the indexed-search status/refresh/control routes – back the GUI’s server dropdown, typed tag-tree browser, namespace search, index management, and connection test.

Read-only diagnostics remain independent of crate::state::AppState::active_run, and every OPC operation is bounded by an explicit [OPC_QUERY_TIMEOUT_SECS] timeout (see that constant’s doc comment for why one is needed at all). Index management does not acquire the active-tune lock either: starting or controlling a gateway inventory must not block, or be blocked by, an in-flight tune.

Structs§

OpcBrowseNodeResponse
One node returned by GET /api/opc/browse. node_key and item_id must remain separate: the former is an opaque navigation key, while the latter is the exact selectable OPC DA ItemID and may contain namespace punctuation with no relationship to hierarchy.
OpcBrowseQuery
Query parameters for GET /api/opc/browse.
OpcBrowseResponse
OpcCapabilitiesResponse
OpcCloseBrowseSessionResponse
OpcIndexSchedulerResponse
OpcIndexedSearchMatchResponse
OpcIndexedSearchProgressResponse
OpcReadQuery
Query parameters for GET /api/opc/read.
OpcReadResponse
Response body of GET /api/opc/read.
OpcSearchIndexAutoRefreshQuery
Query parameters for POST /api/opc/search-index/auto-refresh.
OpcSearchIndexControlQuery
Query parameters for POST /api/opc/search-index/control.
OpcSearchIndexQuery
Query the gateway-owned persistent namespace index. This is a bounded unary request and never falls back to the legacy live traversal search.
OpcSearchIndexRefreshQuery
Query parameters for POST /api/opc/search-index/refresh.
OpcSearchIndexResponse
OpcSearchIndexServerQuery
Query parameters shared by indexed-search status and search-index actions.
OpcSearchIndexStatusResponse
OpcSearchQuery
Query parameters for the progressive GET /api/opc/search SSE endpoint.
OpcServerQuery
Query parameters for GET /api/opc/capabilities.
OpcServersQuery
Query parameters for GET /api/opc/servers.
OpcServersResponse
Response body of GET /api/opc/servers.

Enums§

OpcBrowseNodeKind

Functions§

router