summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
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
}