Discover Packages
github.com/goto/salt
mux
package
Version:
v0.3.6
Opens a new window with list of versions in this module.
Published: Apr 24, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
Mux
mux
package provides helpers for starting multiple servers. HTTP and gRPC
servers are supported currently.
Usage
Refer _example/ for usage reference.
Expand ▾
Collapse ▴
Documentation
¶
Serve starts TCP listeners and serves the registered protocol servers of the
given serveTarget(s) and blocks until the servers exit. Context can be
cancelled to perform graceful shutdown.
type Option func(m *muxServer) error
Option values can be used with Serve() for customisation.
WithGracePeriod sets the wait duration for graceful shutdown.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.