progress

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	fmt.Stringer
}

Event an event published by certain services that notify that a certain progress has been made

type Observer

type Observer interface {
	Notify(evt Event)
}

Observer is an entity that wishes to receive progress events

type ObserverChain

type ObserverChain struct {
	// contains filtered or unexported fields
}

ObserverChain iterate on all the observers for notify

func (*ObserverChain) Join

func (chain *ObserverChain) Join(obs Observer)

Join will add observer to listen for notify events

func (*ObserverChain) Notify

func (chain *ObserverChain) Notify(evt Event)

Notify each observer

Jump to

Keyboard shortcuts

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