xxtask

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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