stop

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Start()
	Stop()
}

type Struct

type Struct struct {
	sync.RWMutex

	Go      func(callable func(ctx context.Context))
	WithCtx func(callable func(ctx context.Context))
	// contains filtered or unexported fields
}

Struct is abstract class with Start/Stop methods

func (*Struct) Start

func (s *Struct) Start()

Start ...

func (*Struct) StartFunc

func (s *Struct) StartFunc(startProcedure func() error) error

StartFunc ...

func (*Struct) Stop

func (s *Struct) Stop()

Stop ...

func (*Struct) StopFunc

func (s *Struct) StopFunc(callable func())

StopFunc ...

Jump to

Keyboard shortcuts

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