Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "v0.0.0" Commit = "00000000" BuildTime = "00000000.000000" )
Functions ¶
func CancelOnInterrupt ¶
func CancelOnInterrupt(ctx context.Context, f context.CancelFunc)
CancelOnInterrupt calls f when os.Interrupt or SIGTERM is received. It ignores subsequent interrupts on purpose - program should exit correctly after the first signal.
func Run ¶
func Run(factory RunnableFactory)
Types ¶
type RunnableFactory ¶
Click to show internal directories.
Click to hide internal directories.