service

package
v0.0.0-...-1eded09 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMongoExportService

type IMongoExportService interface {
	ExportDbByUid(uid []int64) (err error)
	ExportDbByKey(key, value string) (err error)
	ExportTable(database string, tables []string, dataDir string) (err error)
}

type IMongoImportService

type IMongoImportService interface {
	ImportDb4file(path string) (err error)
	ImportDatabase(databases string, datadir string) error
	RmSenInfo(updtfields model.UpdtFields, uid []int64) (err error) // Removal of sensitive information
	Delete(uid []int64) (err error)
}

type IMysqlExportService

type IMysqlExportService interface {
	ExportDbByUid(uid []int64) (err error)
	ExportDbByKey(key, value string) (err error)
	ExportTable(database string, tables []string, dataDir string) (err error)
}

type ImysqlImportService

type ImysqlImportService interface {
	ImportDb4file(dataDir string) (err error)
	ImportDatabase(databases string, dataDir string) (err error)
	RmSenInfo(updtfields []int64, uid []int64) error
	Delete(uid []int64) (err error)
}

type MongoExportService

type MongoExportService struct {
	Ops dao.IMongoDao
}

func (*MongoExportService) ExportDbByKey

func (srv *MongoExportService) ExportDbByKey(key, value string) (err error)

func (*MongoExportService) ExportDbByUid

func (srv *MongoExportService) ExportDbByUid(uid []int64) (err error)

func (*MongoExportService) ExportTable

func (srv *MongoExportService) ExportTable(database string, tables []string, dataDir string) (err error)

type MongoImportService

type MongoImportService struct {
	Ops dao.IMongoDao
}

func (*MongoImportService) Delete

func (srv *MongoImportService) Delete(uid []int64) (err error)

func (*MongoImportService) ImportDatabase

func (srv *MongoImportService) ImportDatabase(database string, dataDir string) error

func (*MongoImportService) ImportDb4file

func (srv *MongoImportService) ImportDb4file(p string) (err error)

func (*MongoImportService) RmSenInfo

func (srv *MongoImportService) RmSenInfo(updtfields model.UpdtFields, uid []int64) error

type MysqlExportService

type MysqlExportService struct {
	Ops dao.IMysqlDao
}

func (*MysqlExportService) ExportDbByKey

func (srv *MysqlExportService) ExportDbByKey(key, value string) (err error)

func (*MysqlExportService) ExportDbByUid

func (srv *MysqlExportService) ExportDbByUid(uid []int64) (err error)

ExportDbByUid 通过输入uid,然后连接数据库,选择表,获取数据,最后将获取的数据进行打包成文件格式

func (*MysqlExportService) ExportTable

func (srv *MysqlExportService) ExportTable(database string, tables []string, dataDir string) (err error)

type MysqlImportService

type MysqlImportService struct {
	Ops dao.IMysqlDao
}

func (*MysqlImportService) Delete

func (srv *MysqlImportService) Delete(uid []int64) (err error)

func (*MysqlImportService) ImportDatabase

func (srv *MysqlImportService) ImportDatabase(database string, dataDir string) (err error)

func (*MysqlImportService) ImportDb4file

func (srv *MysqlImportService) ImportDb4file(dataDir string) (err error)

func (*MysqlImportService) RmSenInfo

func (srv *MysqlImportService) RmSenInfo(updtfields []int64, uid []int64) error

Jump to

Keyboard shortcuts

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