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)
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)
Click to show internal directories.
Click to hide internal directories.