summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2023-11-14 15:44:00 -0700
committertjp <tjp@ctrl-c.club>2023-11-14 15:44:00 -0700
commit105022b22d4b297057a7a946e3d6e1202bc6d1d5 (patch)
tree840eea2a699f28aac1443b2275f9a05abb098fb5 /protocol.go
parente8122362a0af5a499dcba182d6e7b41bd4b3eccf (diff)
Protocol refactor
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocol.go b/protocol.go
new file mode 100644
index 0000000..dc2abbc
--- /dev/null
+++ b/protocol.go
@@ -0,0 +1,14 @@
+package syw
+
+import (
+ "context"
+
+ "tildegit.org/tjp/sliderule"
+)
+
+type protocol interface {
+ sliderule.ServerProtocol
+
+ TemplateBaseData(context.Context, *sliderule.Request) map[string]any
+ TemplateRepoData(context.Context, *sliderule.Request) map[string]any
+}