Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package a11y is Silk's accessibility surface — the equivalent of Qt's QAccessible.
|
Package a11y is Silk's accessibility surface — the equivalent of Qt's QAccessible. |
|
Package auth provides in-memory user credentials and role-based action permissions, modeled on FameView (杰控) 用户权限: operators, engineers and admins with gated actions.
|
Package auth provides in-memory user credentials and role-based action permissions, modeled on FameView (杰控) 用户权限: operators, engineers and admins with gated actions. |
|
Package bench holds shared painter scenarios that drive both Cairo and glui paint.Painter implementations.
|
Package bench holds shared painter scenarios that drive both Cairo and glui paint.Painter implementations. |
|
Package buildissues parses the textual output of the Go toolchain (go build, go vet, go test) into structured issues suitable for an Issues pane.
|
Package buildissues parses the textual output of the Go toolchain (go build, go vet, go test) into structured issues suitable for an Issues pane. |
|
Package calc implements 公式/计算变量 (calc / formula tags): a derived tag whose live value is an expression evaluated over other tags.
|
Package calc implements 公式/计算变量 (calc / formula tags): a derived tag whose live value is an expression evaluated over other tags. |
|
cmd
|
|
|
silkgen
command
silkgen converts a designer-produced .silkui file into a Go source snippet using silk/decl's builder DSL.
|
silkgen converts a designer-produced .silkui file into a Go source snippet using silk/decl's builder DSL. |
|
silkide
command
silkide is a reference implementation of the JetBrains-style IDE layout for the silk framework.
|
silkide is a reference implementation of the JetBrains-style IDE layout for the silk framework. |
|
Package core provides foundational utilities for the Silk UI framework.
|
Package core provides foundational utilities for the Silk UI framework. |
|
Package decl is the declarative authoring layer for Silk widget trees.
|
Package decl is the declarative authoring layer for Silk widget trees. |
|
Package device is the designer-facing bridge between silk's UI and the field-device layer (package driver).
|
Package device is the designer-facing bridge between silk's UI and the field-device layer (package driver). |
|
Package driver connects silk's real-time tag database to industrial field devices over Modbus TCP and Siemens S7.
|
Package driver connects silk's real-time tag database to industrial field devices over Modbus TCP and Siemens S7. |
|
Package eventlog records alarms, user actions and system events into a SQLite table and answers time-range queries, backing FameView's 事件记录 (event/audit log) screen with a persisted, filterable history.
|
Package eventlog records alarms, user actions and system events into a SQLite table and answers time-range queries, backing FameView's 事件记录 (event/audit log) screen with a persisted, filterable history. |
|
examples
|
|
|
calculator
command
|
|
|
charts
command
Silk Chart Widget Gallery
|
Silk Chart Widget Gallery |
|
dashboard
command
Silk System Monitor Dashboard
|
Silk System Monitor Dashboard |
|
databinding
command
Silk Data Binding Demo
|
Silk Data Binding Demo |
|
hmi
command
Silk 组态 / HMI — end-to-end example on the scada.Services runtime.
|
Silk 组态 / HMI — end-to-end example on the scada.Services runtime. |
|
quickstart
command
Silk Quick Start — Build your first GUI app in 5 minutes
|
Silk Quick Start — Build your first GUI app in 5 minutes |
|
scada
command
Silk SCADA / 组态 HMI — end-to-end tag-driven water-tank demo.
|
Silk SCADA / 组态 HMI — end-to-end tag-driven water-tank demo. |
|
texteditor
command
Silk Text Editor
|
Silk Text Editor |
|
todoapp
command
|
|
|
Package filesearch is Silk's find-in-files engine — the UI-agnostic core behind an IDE's "Find in Files" (Qt Creator's Search > Find in Files).
|
Package filesearch is Silk's find-in-files engine — the UI-agnostic core behind an IDE's "Find in Files" (Qt Creator's Search > Find in Files). |
|
Package fswatch is Silk's filesystem-watcher runtime — the equivalent of Qt's QFileSystemWatcher.
|
Package fswatch is Silk's filesystem-watcher runtime — the equivalent of Qt's QFileSystemWatcher. |
|
Package gateway bridges two field devices: it polls a source device into a shared core.TagDB and forwards every tag change on to a sink device, turning silk into a protocol gateway (数据转发 / FameView 数据转发).
|
Package gateway bridges two field devices: it polls a source device into a shared core.TagDB and forwards every tag change on to a sink device, turning silk into a protocol gateway (数据转发 / FameView 数据转发). |
|
Package ged implements the visual GUI editor (Silk Designer).
|
Package ged implements the visual GUI editor (Silk Designer). |
|
Package geom provides 2D geometry primitives.
|
Package geom provides 2D geometry primitives. |
|
Package graph provides a scene-graph editing framework.
|
Package graph provides a scene-graph editing framework. |
|
Package gui provides a cross-platform GUI widget toolkit for Go.
|
Package gui provides a cross-platform GUI widget toolkit for Go. |
|
可以指定比较函数的HashMap.
|
可以指定比较函数的HashMap. |
|
Package historian turns silk's live-only tag trends into reviewable history: it records core.Tag changes into a SQLite table and answers time-range queries, so a screen that only shows the current value can be backed by a scrollable, persisted trend.
|
Package historian turns silk's live-only tag trends into reviewable history: it records core.Tag changes into a SQLite table and answers time-range queries, so a screen that only shows the current value can be backed by a scrollable, persisted trend. |
|
Package hotreload bridges silk/fswatch with silk/decl so designer- authored .silkui files can be edited at runtime and trigger an in-process widget tree rebuild without restarting the host process.
|
Package hotreload bridges silk/fswatch with silk/decl so designer- authored .silkui files can be edited at runtime and trigger an in-process widget tree rebuild without restarting the host process. |
|
Package i18n is Silk's translation runtime — the equivalent of Qt's QTranslator + tr() pair.
|
Package i18n is Silk's translation runtime — the equivalent of Qt's QTranslator + tr() pair. |
|
ide
|
|
|
bookmarks
Package bookmarks is the persistent store behind an IDE's code bookmarks: (file, line) marks with a note, written to one JSON file and re-anchored to the text of their line so a mark survives edits made above it — including edits made while the IDE was closed.
|
Package bookmarks is the persistent store behind an IDE's code bookmarks: (file, line) marks with a note, written to one JSON file and re-anchored to the text of their line so a mark survives edits made above it — including edits made while the IDE was closed. |
|
document
Package document is Silk's shared text-document model: the single copy of a file's text that every view of that file agrees on, plus the revision counter, change notifications and stable positions an IDE needs on top of it.
|
Package document is Silk's shared text-document model: the single copy of a file's text that every view of that file agrees on, plus the revision counter, change notifications and stable positions an IDE needs on top of it. |
|
gotest
Package gotest runs `go test -json` and folds its event stream into the aggregated model in core (core.Aggregator / core.PackageResult).
|
Package gotest runs `go test -json` and folds its event stream into the aggregated model in core (core.Aggregator / core.PackageResult). |
|
kits
Package kits 存放"某个工程用哪些Kit构建"的持久化状态: Kit列表, 叠在Kit上的构建变体(Debug/Release), 以及当前激活的那一组.
|
Package kits 存放"某个工程用哪些Kit构建"的持久化状态: Kit列表, 叠在Kit上的构建变体(Debug/Release), 以及当前激活的那一组. |
|
lspedit
Package lspedit turns language-server edit descriptions into text and filesystem changes that either fully apply or not at all.
|
Package lspedit turns language-server edit descriptions into text and filesystem changes that either fully apply or not at all. |
|
runconfig
Package runconfig models named run/debug configurations for a project — the equivalent of Qt Creator's "Run Settings", where one project owns several launch targets (run the app, debug it, run the package tests) and one of them is the active default.
|
Package runconfig models named run/debug configurations for a project — the equivalent of Qt Creator's "Run Settings", where one project owns several launch targets (run the app, debug it, run the package tests) and one of them is the active default. |
|
taskrunner
Package taskrunner executes an IDE's build / run / test commands as child processes: a dependency graph of Tasks run in topological order (independent tasks in parallel), every output line streamed as an Event, per-task and whole-run cancellation that kills the entire process group, and a History of what finished, how long it took and how it ended.
|
Package taskrunner executes an IDE's build / run / test commands as child processes: a dependency graph of Tasks run in topological order (independent tasks in parallel), every output line streamed as an Event, per-task and whole-run cancellation that kills the entire process group, and a History of what finished, how long it took and how it ended. |
|
workspace
Package workspace models an IDE session: the versioned, on-disk record of what a window had open — the project, the editor tabs (with their cursor, scroll position and folded regions), the split/pane layout, dock visibility, and the text of buffers that were never written to disk.
|
Package workspace models an IDE session: the versioned, on-disk record of what a window had open — the project, the editor tabs (with their cursor, scroll position and folded regions), the split/pane layout, dock visibility, and the text of buffers that were never written to disk. |
|
Package locator implements the scoring and filtering engine behind a Qt-Creator-style Locator (Ctrl+K) / fuzzy quick-open box.
|
Package locator implements the scoring and filtering engine behind a Qt-Creator-style Locator (Ctrl+K) / fuzzy quick-open box. |
|
Package login layers login sessions over the auth package: a Manager authenticates credentials, mints a random token per login, and expires sessions after an idle timeout.
|
Package login layers login sessions over the auth package: a Manager authenticates credentials, mints a random token per login, and expires sessions after an idle timeout. |
|
Package notify sends native OS desktop notifications, giving the desktop build parity with other native apps: events such as alarms surface through the host notification centre instead of only inside the app window.
|
Package notify sends native OS desktop notifications, giving the desktop build parity with other native apps: events such as alarms surface through the host notification centre instead of only inside the app window. |
|
Package paint provides 2D drawing primitives built on Cairo.
|
Package paint provides 2D drawing primitives built on Cairo. |
|
Package pdfexport implements a paint.Painter that records draw operations and serialises them as a PDF 1.4 document.
|
Package pdfexport implements a paint.Painter that records draw operations and serialises them as a PDF 1.4 document. |
|
Package playback replays recorded historian history into a LineChart: it loads a tag's samples over a time range, optionally decimates them to a point budget, and feeds them into a rolling series so the chart's time axis shows the persisted trend instead of only the live tail.
|
Package playback replays recorded historian history into a LineChart: it loads a tag's samples over a time range, optionally decimates them to a point budget, and feeds them into a rolling series so the chart's time axis shows the persisted trend instead of only the live tail. |
|
Package prop provides a reflection-based property editing system.
|
Package prop provides a reflection-based property editing system. |
|
Package purecairo is a pure-Go implementation of the Cairo 2D graphics API silk uses, with zero CGO dependencies.
|
Package purecairo is a pure-Go implementation of the Cairo 2D graphics API silk uses, with zero CGO dependencies. |
|
Package recipe implements FameView-style 配方 (recipe) management: named sets of tag values that can be saved to disk, loaded back, applied (downloaded) to the process, and captured from live tags.
|
Package recipe implements FameView-style 配方 (recipe) management: named sets of tag values that can be saved to disk, loaded back, applied (downloaded) to the process, and captured from live tags. |
|
Package recpaint implements a paint.Painter that records every operation into an in-memory log and can replay the log onto any other paint.Painter target.
|
Package recpaint implements a paint.Painter that records every operation into an in-memory log and can replay the log onto any other paint.Painter target. |
|
Package report turns silk's persisted tag history into FameView-style 报表 (interval reports): it slices a time range into fixed buckets, reduces each tag's samples in every bucket with a chosen aggregate, and renders the grid as CSV or HTML.
|
Package report turns silk's persisted tag history into FameView-style 报表 (interval reports): it slices a time range into fixed buckets, reduces each tag's samples in every bucket with a chosen aggregate, and renders the grid as CSV or HTML. |
|
Package scada is the headless runtime service container for a SCADA / 组态 (HMI) application: it owns ONE of each backend resource — the real-time tag registry, the alarm engine, the historian, the event log, the recipe book and the live-statistics collector — and wires them together so a screen built from the backend-free gui panels has a single, consistent runtime to talk to.
|
Package scada is the headless runtime service container for a SCADA / 组态 (HMI) application: it owns ONE of each backend resource — the real-time tag registry, the alarm engine, the historian, the event log, the recipe book and the live-statistics collector — and wires them together so a screen built from the backend-free gui panels has a single, consistent runtime to talk to. |
|
Package script runs Go scripts inside silk at runtime (via a yaegi interpreter) with the tag API pre-bound, so designer-authored logic — derived tags, alarm actions, button handlers — can be edited and run without recompiling the app.
|
Package script runs Go scripts inside silk at runtime (via a yaegi interpreter) with the tag API pre-bound, so designer-authored logic — derived tags, alarm actions, button handlers — can be edited and run without recompiling the app. |
|
Package settings is Silk's preferences-storage runtime — the equivalent of Qt's QSettings.
|
Package settings is Silk's preferences-storage runtime — the equivalent of Qt's QSettings. |
|
Package sim provides a synthetic driver.Driver that generates values from simple time-based waveforms, so silk HMIs can run, be demoed and be tested without any real PLC or field device attached (the "仿真" / simulation mode familiar from FameView and other SCADA tools).
|
Package sim provides a synthetic driver.Driver that generates values from simple time-based waveforms, so silk HMIs can run, be demoed and be tested without any real PLC or field device attached (the "仿真" / simulation mode familiar from FameView and other SCADA tools). |
|
Package snippet implements Qt Creator / TextMate / LSP style snippet expansion.
|
Package snippet implements Qt Creator / TextMate / LSP style snippet expansion. |
|
Package state is Silk's hierarchical finite state machine — the equivalent of Qt's QStateMachine framework.
|
Package state is Silk's hierarchical finite state machine — the equivalent of Qt's QStateMachine framework. |
|
Package stats computes live per-tag rolling statistics (min/max/avg/count) over a core.TagDB stream — running KPIs for FameView 统计 dashboards.
|
Package stats computes live per-tag rolling statistics (min/max/avg/count) over a core.TagDB stream — running KPIs for FameView 统计 dashboards. |
|
Package svg is Silk's SVG rendering layer — the equivalent of Qt's QSvgRenderer.
|
Package svg is Silk's SVG rendering layer — the equivalent of Qt's QSvgRenderer. |
|
Package svgexport implements a paint.Painter that records draw operations and serialises them as SVG XML.
|
Package svgexport implements a paint.Painter that records draw operations and serialises them as SVG XML. |
|
Package systray is a thin wrapper over fyne.io/systray that places the application in the OS system tray with clickable menu items, giving the desktop build parity with native apps (for example, surfacing alarms from a tray menu).
|
Package systray is a thin wrapper over fyne.io/systray that places the application in the OS system tray with clickable menu items, giving the desktop build parity with native apps (for example, surfacing alarms from a tray menu). |
|
Package template provides 结构化组态 device templates: define a device type once — its tags, their address offsets, data types, byte orders and access modes — then stamp it across many instances in one batch.
|
Package template provides 结构化组态 device templates: define a device type once — its tags, their address offsets, data types, byte orders and access modes — then stamp it across many instances in one batch. |
Click to show internal directories.
Click to hide internal directories.