dump

package
v1.21.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump

type Dump struct {
	Options *DumpOptions
	DB      *database.Database
}

func (*Dump) ExportAuditlogs

func (d *Dump) ExportAuditlogs(destDir string, dur time.Duration)

func (*Dump) ExportMessages

func (d *Dump) ExportMessages(destDir string, dur time.Duration)

func (*Dump) Start

func (d *Dump) Start()

type DumpOptions

type DumpOptions struct {
	Dir               string `yaml:"dir"`
	ExecCron          string `yaml:"execCron"`
	DataStoreDuration string `yaml:"dataStoreDuration"`
}

func NewDefaultDumpOptions

func NewDefaultDumpOptions() *DumpOptions

func (*DumpOptions) RegistFlags

func (o *DumpOptions) RegistFlags(prefix string, fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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