diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:37:03 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:37:03 +0800 |
commit | 2d0ea5ba085f9caa84a7e7b1fd55f653834009aa (patch) | |
tree | 46278813d2e2f7dd080c9289321c1021fa619e80 /server.go | |
parent | ircSend* shall no longer be global variables (diff) | |
download | forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.tar.gz forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.tar.zst forge-2d0ea5ba085f9caa84a7e7b1fd55f653834009aa.zip |
sshPubkey* shall no longer be global variables
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,7 @@ import ( "net/http" "github.com/jackc/pgx/v5/pgxpool" + goSSH "golang.org/x/crypto/ssh" ) type server struct { @@ -19,4 +20,11 @@ type server struct { ircSendBuffered chan string ircSendDirectChan chan errorBack[string] + + // globalData is passed as "global" when rendering HTML templates. + globalData map[string]any + + serverPubkeyString string + serverPubkeyFP string + serverPubkey goSSH.PublicKey } |