Examples using... "os/signal"
Recent
Notify causes package signal to relay incoming signals to c.
If no signals are provided, all incoming signals will be relayed to c.
Otherwise, just the provided signals will.
Notify causes package signal to relay incoming signals to c.
If no signals are provided, all incoming signals will be relayed to c.
Otherwise, just the provided signals will.
Shutdown gracefully shuts down the server without interrupting any
active connections. Shutdown works by first closing all open
listeners, then closing all idle connections, and then waiting
indefinitely for connections to return to idle and then shut down.
If the provided context expires before the...
This example shows how to use the consumer to read messages
from a single partition.
This example shows how to use the producer while simultaneously
reading the Errors channel to know about any failures.
This example shows how to use the producer with separate goroutines
reading from the Successes and Errors channels. Note that in order
for the Successes channel to be populated, you have to set
config.Producer.Return.Successes to true.
Package sql provides a generic interface around SQL (or SQL-like)
databases.