summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2021-09-23 16:10:59 -0500
committerSean E. Russell <ser@ser1.net>2021-09-23 16:10:59 -0500
commitcde215120f1994076b7f02809fc7706e07e918ab (patch)
treefb6a48e578a08428c74accff27d2c08aee88cdc8
parente1600ac7fb365b89ccbd7e157a685c9cbb795973 (diff)
Updated Goheadless
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--docs/extensions.md23
2 files changed, 1 insertions, 24 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index de77df1..fe7989b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@master
- name: Compile
- uses: xxxserxxx/actions/golang-build@v2.0.1
+ uses: xxxserxxx/actions/golang-build@v2.0.2
env:
SRCPATH: ./cmd/gotop
with:
diff --git a/docs/extensions.md b/docs/extensions.md
index b013554..9d1406f 100644
--- a/docs/extensions.md
+++ b/docs/extensions.md
@@ -1,5 +1,3 @@
-% Plugins
-
# Current state
First, there were go plugins. This turned out to be impractical due to the limitations in plugins making them unsuitable for use outside of a small, strict, and (one could argue) useless use case.
@@ -7,24 +5,3 @@ First, there were go plugins. This turned out to be impractical due to the limit
Then I tried external static extensions. This approach used a trick to copy and modify the gotop main executable, which then imported it's own packages from upstream. This worked, but was awkward and required several steps to build.
Currently, as I've only written two modules since I started down this path, and there's no clean, practical solution yet in Go, I've folded the extensions into the main codebase. This means there's no programmatic extension mechanism for gotop.
-
-
-# Devices
-
-- Devices supply an `Init()` function that will call the appropriate
- `Register\*()` functions in the `github.com/xxxserxxx/gotop/devices` package.
-- `devices` will supply:
- - RegisterCPU (opt)
- - Counts (req)
- - Percents (req)
- - RegisterMem (opt)
- - RegisterTemp (opt)
- - RegisterShutdown (opt)
-
-# gotop
-
-- Command line -P, comma separated list of plugin .so
-- gotop will look in `pwd` and then in \$XDG_CONFIG_HOME/gotop
-- When loaded, gotop will call lib#Init()
-
-When exited cleanly, gotop will call all registered shutdown functions.