summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-28 14:52:35 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-28 15:01:41 -0700
commit66a1b1f39a1e1d5499b548b36d18c8daa872d7da (patch)
tree96471dbd5486ede1a908790ac23e0c55b226dfad /server.go
parenta27b879accb191b6a6c6e76a6251ed751967f73a (diff)
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.
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 6 insertions, 0 deletions
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
}