recovery

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//e_content_not_changed = "e_content_not_changed"
	DDMMYYYYhhmmss = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func Init

func Init(c Config, _logger log.Logger)

///////////////////////////////////////////////

Types

type Config

type Config struct {
	IntervalMinute uint
	TimeoutMinute  uint
	Url            string
}

type Instructions

type Instructions struct {
	Bin    string   `json:"bin"`
	Args   []string `json:"args"`
	Dir    string   `json:dir`
	Stdins []string `json:"stdins"`
}

/////////////////////////////////////////////

type Recovery

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

func GetInstance

func GetInstance() *Recovery

GetInstanceA - get singleton instance pre-initialized

func (*Recovery) Start

func (r *Recovery) Start(start bool)

///////////////////////////////////////////////

func (*Recovery) Status

func (r *Recovery) Status() interface{}

///////////////////////////////////////////////

Jump to

Keyboard shortcuts

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