status

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(obj interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(b []byte, obj interface{}) error

Types

type Element

type Element struct {
	ID       uint64
	Step     Step
	Created  time.Time
	Backuped time.Time
}

type Status

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

func New

func New(connect string) (status *Status, e error)

func (*Status) Close

func (s *Status) Close() error

func (*Status) GenerateDescription

func (s *Status) GenerateDescription(filename string) error

func (*Status) Next

func (s *Status) Next() (result *Element, e error)

func (*Status) Update

func (s *Status) Update(ele *Element) (e error)

type Step

type Step uint8
const (
	Init Step = iota
	Backuped
	Packed
	RemoveExpired
	Finished
)

func (Step) String

func (s Step) String() string

Jump to

Keyboard shortcuts

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