Documentation
¶
Index ¶
- type BackupInfo
- type CreateInfo
- type DBInfo
- type DeleteInfo
- type Local
- func (r *Local) Backup(info BackupInfo) error
- func (r *Local) ChangePassword(info PasswordChangeInfo) error
- func (r *Local) ChangePrivileges(info Privileges) error
- func (r *Local) Close()
- func (r *Local) Create(info CreateInfo) error
- func (r *Local) CreateUser(info CreateInfo, withDeleteDB bool) error
- func (r *Local) Delete(info DeleteInfo) error
- func (r *Local) ExecSQL(command string, timeout uint) error
- func (r *Local) ExecSQLForRows(command string, timeout uint) ([]string, error)
- func (r *Local) Recover(info RecoverInfo) error
- func (r *Local) SyncDB() ([]SyncDBInfo, error)
- type PasswordChangeInfo
- type Privileges
- type RecoverInfo
- type Remote
- func (r *Remote) Backup(info BackupInfo) error
- func (r *Remote) ChangePassword(info PasswordChangeInfo) error
- func (r *Remote) ChangePrivileges(info Privileges) error
- func (r *Remote) Close()
- func (r *Remote) Create(info CreateInfo) error
- func (r *Remote) CreateUser(info CreateInfo, withDeleteDB bool) error
- func (r *Remote) Delete(info DeleteInfo) error
- func (r *Remote) ExecSQL(command string, timeout uint) error
- func (r *Remote) Recover(info RecoverInfo) error
- func (r *Remote) SyncDB() ([]SyncDBInfo, error)
- type Status
- type SyncDBInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInfo ¶
type CreateInfo ¶
type DeleteInfo ¶
type Local ¶
type Local struct {
PrefixCommand []string
Database string
Username string
Password string
ContainerName string
}
func (*Local) Backup ¶
func (r *Local) Backup(info BackupInfo) error
func (*Local) ChangePassword ¶
func (r *Local) ChangePassword(info PasswordChangeInfo) error
func (*Local) ChangePrivileges ¶
func (r *Local) ChangePrivileges(info Privileges) error
func (*Local) Create ¶
func (r *Local) Create(info CreateInfo) error
func (*Local) CreateUser ¶
func (r *Local) CreateUser(info CreateInfo, withDeleteDB bool) error
func (*Local) Delete ¶
func (r *Local) Delete(info DeleteInfo) error
func (*Local) ExecSQLForRows ¶
func (*Local) Recover ¶
func (r *Local) Recover(info RecoverInfo) error
func (*Local) SyncDB ¶
func (r *Local) SyncDB() ([]SyncDBInfo, error)
type PasswordChangeInfo ¶
type Privileges ¶
type RecoverInfo ¶
type Remote ¶
type Remote struct {
Client *sql.DB
From string
Database string
User string
Password string
Address string
Port uint
}
func (*Remote) Backup ¶
func (r *Remote) Backup(info BackupInfo) error
func (*Remote) ChangePassword ¶
func (r *Remote) ChangePassword(info PasswordChangeInfo) error
func (*Remote) ChangePrivileges ¶
func (r *Remote) ChangePrivileges(info Privileges) error
func (*Remote) Create ¶
func (r *Remote) Create(info CreateInfo) error
func (*Remote) CreateUser ¶
func (r *Remote) CreateUser(info CreateInfo, withDeleteDB bool) error
func (*Remote) Delete ¶
func (r *Remote) Delete(info DeleteInfo) error
func (*Remote) Recover ¶
func (r *Remote) Recover(info RecoverInfo) error
func (*Remote) SyncDB ¶
func (r *Remote) SyncDB() ([]SyncDBInfo, error)
type Status ¶
type Status struct {
Uptime string `json:"uptime"`
Version string `json:"version"`
MaxConnections string `json:"max_connections"`
Autovacuum string `json:"autovacuum"`
CurrentConnections string `json:"current_connections"`
HitRatio string `json:"hit_ratio"`
BuffersClean string `json:"buffers_clean"`
MaxwrittenClean string `json:"maxwritten_clean"`
BuffersBackendFsync string `json:"buffers_backend_fsync"`
}
type SyncDBInfo ¶
Click to show internal directories.
Click to hide internal directories.