diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-28 14:52:35 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-28 15:01:41 -0700 |
commit | 66a1b1f39a1e1d5499b548b36d18c8daa872d7da (patch) | |
tree | 96471dbd5486ede1a908790ac23e0c55b226dfad /server.go | |
parent | a27b879accb191b6a6c6e76a6251ed751967f73a (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.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 } |