cmd

command
v0.0.0-...-1b0d107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 13 Imported by: 0

README

cmd

This package contains the top-level main function that runs the service. It follows the same structure suggested by the go standard project layout. The service provides a single executable.

In addition to the main function, there is also a serve function, which runs the gRPC server and takes care of gracefully shutting it down. Since inserting the ports in the database happens in a streaming fashion, it's likely that the operations take a while to finish executing, and shutting them down in the middle of the execution might have undesirable effects on the database entries. At the first cancellation signal, the gRPC server will no longer respond to any RPC method calls, and wait for a certain amount of time for the ongoing operations to complete. When either the operations complete, the timeout finishes, or another cancellation signal is received, the gRPC server will stop (forcefully if needed).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL