Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StartStopDaemon ¶
type StartStopDaemon struct {
// contains filtered or unexported fields
}
func NewStartStopDaemon ¶
func NewStartStopDaemon(opts ...StartStopDaemonOption) *StartStopDaemon
func (*StartStopDaemon) Pause ¶
func (s *StartStopDaemon) Pause() error
func (*StartStopDaemon) Start ¶
func (s *StartStopDaemon) Start()
func (*StartStopDaemon) Stop ¶
func (s *StartStopDaemon) Stop() error
type StartStopDaemonOption ¶
type StartStopDaemonOption func(opts *startStopDaemonOptions) error
func WithContext ¶
func WithContext(ctx context.Context) StartStopDaemonOption
func WithDaemon ¶
func WithDaemon() StartStopDaemonOption
func WithDeadline ¶
func WithDeadline(dl time.Time) StartStopDaemonOption
func WithFuncion ¶
func WithFuncion(Func func()) StartStopDaemonOption
func WithInterval ¶
func WithInterval(interval time.Duration) StartStopDaemonOption
Click to show internal directories.
Click to hide internal directories.