From 66a1b1f39a1e1d5499b548b36d18c8daa872d7da Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 28 Jan 2023 14:52:35 -0700 Subject: gopher support. Some of the contrib packages were originally built gemini-specific and had to be refactored into generic core functionality and thin protocol-specific wrappers for each of gemini and gopher. --- server.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server.go') diff --git a/server.go b/server.go index 96b6433..686e92e 100644 --- a/server.go +++ b/server.go @@ -19,6 +19,9 @@ type Server interface { // hasn't yet completed. Closed() bool + // Protocol returns the protocol being served by the server. + Protocol() string + // Network returns the network type on which the server is running. Network() string @@ -33,4 +36,7 @@ type Server interface { // It will return the empty string if the network type does not // have ports (unix sockets, for example). Port() string + + // LogError sends a log message to the server's error log. + LogError(keyvals ...any) error } -- cgit v1.2.3