Skip to content

Commit

Permalink
server: highlight fields that represent configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Oct 7, 2021
1 parent d2ce9e1 commit cbc1102
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbc1102

Please sign in to comment.