state

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupFailure

func BackupFailure(service util.Service)

func BackupInit

func BackupInit(service util.Service)

func BackupQueue

func BackupQueue(service util.Service)

func BackupStart

func BackupStart(service util.Service)

func BackupSuccess

func BackupSuccess(service util.Service)

func RestoreFailure

func RestoreFailure(service util.Service)

func RestoreInit

func RestoreInit(service util.Service)

func RestoreQueue

func RestoreQueue(service util.Service)

func RestoreStart

func RestoreStart(service util.Service)

func RestoreSuccess

func RestoreSuccess(service util.Service)

Types

type State

type State struct {
	Type     string
	Status   string
	At       time.Time
	Duration time.Duration
}

type StateTracker

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

func Tracker

func Tracker() *StateTracker

func (*StateTracker) Delete

func (st *StateTracker) Delete(key string)

func (*StateTracker) Read

func (st *StateTracker) Read(key string) (State, bool)

func (*StateTracker) Set

func (st *StateTracker) Set(key string, state State)

Jump to

Keyboard shortcuts

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