dump

package
v0.0.0-...-ce289cb Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleReceiver

type ConsoleReceiver struct {
}

func (ConsoleReceiver) ProgressEnd

func (r ConsoleReceiver) ProgressEnd()

func (ConsoleReceiver) ProgressStart

func (r ConsoleReceiver) ProgressStart(title string, max int64)

func (ConsoleReceiver) ProgressUpdate

func (r ConsoleReceiver) ProgressUpdate(add int64)

func (ConsoleReceiver) WriteStruct

func (r ConsoleReceiver) WriteStruct(s interface{}) error

type Dump

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

func New

func New(c *client.Client, r Receiver) *Dump

func (*Dump) Dump

func (dump *Dump) Dump() error

type FileReceiver

type FileReceiver struct {
	File *os.File
}

func (FileReceiver) ProgressEnd

func (r FileReceiver) ProgressEnd()

func (FileReceiver) ProgressStart

func (r FileReceiver) ProgressStart(title string, max int64)

func (FileReceiver) ProgressUpdate

func (r FileReceiver) ProgressUpdate(add int64)

func (FileReceiver) WriteStruct

func (r FileReceiver) WriteStruct(s interface{}) error

type Receiver

type Receiver interface {
	WriteStruct(s interface{}) error

	ProgressStart(title string, max int64)
	ProgressUpdate(add int64)
	ProgressEnd()
}

Jump to

Keyboard shortcuts

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