From cbc1102374d020f5deaca1dd24c5c4229474d73c Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Wed, 6 Oct 2021 19:12:58 -0700 Subject: [PATCH] server: highlight fields that represent configuration --- server.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 29dfb09..6496364 100644 --- a/server.go +++ b/server.go @@ -23,9 +23,11 @@ type logger = func(string, ...interface{}) // responses on a channel.Channel provided by the caller, and dispatches // requests to user-defined Handlers. type Server struct { - wg sync.WaitGroup // ready when workers are done at shutdown time - mux Assigner // associates method names with handlers - sem *semaphore.Weighted // bounds concurrent execution (default 1) + wg sync.WaitGroup // ready when workers are done at shutdown time + mux Assigner // associates method names with handlers + sem *semaphore.Weighted // bounds concurrent execution (default 1) + + // Configurable settings allow1 bool // allow v1 requests with no version marker allowP bool // allow server notifications to the client log logger // write debug logs here