-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ms8.1 - further improvements for single-binary operation
Embed web-based and BPF C file templates so that nethadone can run entirely from a pre-built binary and not require a checkout of the source code External JS libraries will still be pulled from CDNs when accessing the web interface, tbd whether it's worth the trouble to embed those
- Loading branch information
Showing
6 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package handlers | ||
|
||
import "embed" | ||
|
||
// Currently we are handling the management of the throttler | ||
// ebpf outside of bpf2go due to challenges figuring out how to allow | ||
// live recompiling | ||
|
||
//go:embed throttle.bpf.c.tpl | ||
var EmbedThrottlerCode embed.FS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package views | ||
|
||
import "embed" | ||
|
||
//go:embed *.tpl | ||
//go:embed **/*.tpl | ||
var EmbedTemplates embed.FS |