From 105022b22d4b297057a7a946e3d6e1202bc6d1d5 Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 14 Nov 2023 15:44:00 -0700 Subject: Protocol refactor --- protocol.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 protocol.go (limited to 'protocol.go') 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 +} -- cgit v1.2.3