Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingArgs = errors.New("helper.ARGS not find in args")
)
Functions ¶
func ContextWithCancel ¶
func ContextWithCancel() (context.Context, context.CancelFunc)
ContextWithCancel - creating context with cancel. Also start goroutine which waiting for SIGTERM signal and closing the context.
func Init ¶
func Init(args interface{}) (context.Context, context.CancelFunc, error)
Init - allows easily initialize app. Will parse environment arguments, and will initialize application context with cancel.
Types ¶
Click to show internal directories.
Click to hide internal directories.