result

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result interface {
	// WaitInit wait for the program to finish initialization work
	WaitInit() error
	// Wait wait for the program exit
	Wait() error
	// Notify send a signal to the program
	Notify(s os.Signal) error
	// Shutdown shutdown the program
	Shutdown() error
	// InitDone mark the initialization work as finished
	InitDone()
	// InitDoneWithError mark the initialization work as failed
	InitDoneWithError(err error)
	// Done mark the work as finished
	Done()
	// DoneWithError mark the work as failed
	DoneWithError(err error)
	// RegisterNotifyHandler register a signal handler
	RegisterNotifyHandler(ns signal.NotifySignal)
}

Result control the running result of the program

func New

func New() Result

New create an instance of the Result

Jump to

Keyboard shortcuts

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