Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group allows to provide runner of services.
type Option ¶
type Option func(*runner)
Option allows customizing service module.
func WithIgnoreError ¶
WithIgnoreError allows set ignored errors.
func WithLoggerPingPong ¶
WithLoggerPingPong allows to set ping-pong timer for logger.
func WithShutdownTimeout ¶
WithShutdownTimeout allows set shutdown timeout.
type Runner ¶
Runner collects services and runs them concurrently. - when any service returns, all services will be stopped. - when context canceled or deadlined all services will be stopped.
Click to show internal directories.
Click to hide internal directories.