stop

package module
v0.0.0-...-188e98d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: MIT Imports: 1 Imported by: 17

README

stop

Helper for objects with Stop method

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(exit chan struct{}))
	WithExit func(callable func(exit chan struct{}))
	// 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