common

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotifyResult

func NewNotifyResult(success bool, err error, data interface{}) basic.NotifyResult

Types

type Notify

type Notify struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Notify is an implementation of basic.Notify.

func NewNotify

func NewNotify() *Notify

NewNotify creates Notify which implements basic.Notify.

func (*Notify) Done

func (notify *Notify) Done() <-chan struct{}

func (*Notify) Finish

func (notify *Notify) Finish(result basic.NotifyResult) error

Finish sets result and close done channel to notify work done.

func (*Notify) Result

func (notify *Notify) Result() basic.NotifyResult

Result returns the NotifyResult and only valid after Done channel is closed.

Jump to

Keyboard shortcuts

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