package
Version:
v0.0.0-...-04be551
Opens a new window with list of versions in this module.
Published: Sep 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
single_file
This is an example of how to use go channels to block and unblock a services.
Characteristics of this example:
- services are started and stopped randomly.
- services are started in background and then the main go routine waits until services are started.
- main go routine then waits for the services to stop.
Instructions
Once it is running using the instruction in the main README.md, you can
use the following commands to interact with the service:
- Control c (^c) to stop the service in the same terminal window.
- In a different terminal window, you can use the following commands:
- kill -s SIGHUP to stop the service
- kill -1 $(ps | grep "go-build.*main$" | head -1 | cut -d ' ' -f 1)
- kill -s SIGUSR1 to print the current status of the service
- kill -10 $(ps | grep "go-build.*main$" | head -1 | cut -d ' ' -f 1)
License
Apache License 2.0
Documentation
¶
this simulates the main() function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.