Documentation
¶
Index ¶
- func DispatchStorage(storage StorageType, table StorageFuncTable)
- func DispatchTarget(target TargetType, table TargetFuncTable)
- type DataSyncType
- type SettingType
- type StorageFuncTable
- type StorageGcsFunc
- type StorageGcsType
- type StorageType
- type TargetFileFunc
- type TargetFileType
- type TargetFuncTable
- type TargetMysqlFunc
- type TargetMysqlType
- type TargetType
- type VersionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchStorage ¶
func DispatchStorage(storage StorageType, table StorageFuncTable)
func DispatchTarget ¶
func DispatchTarget(target TargetType, table TargetFuncTable)
Types ¶
type DataSyncType ¶ added in v0.1.0
type DataSyncType struct {
Version string `json:"version"`
Histories []VersionType `json:"histories"`
}
---------------------
type SettingType ¶
type SettingType struct {
Targets []TargetType
Storage StorageType
}
type StorageFuncTable ¶
type StorageFuncTable struct {
Gcs StorageGcsFunc
}
type StorageGcsFunc ¶
type StorageGcsFunc func(config StorageGcsType)
--------------------- storage funcs
type StorageGcsType ¶
type StorageType ¶
type StorageType struct {
Kind string
Config interface{}
}
type TargetFileFunc ¶ added in v0.1.0
type TargetFileFunc func(config TargetFileType)
type TargetFileType ¶ added in v0.1.0
type TargetFileType struct {
Path string
}
type TargetFuncTable ¶
type TargetFuncTable struct {
Mysql TargetMysqlFunc
File TargetFileFunc
}
type TargetMysqlFunc ¶
type TargetMysqlFunc func(config TargetMysqlType)
--------------------- target funcs
type TargetMysqlType ¶
type TargetType ¶
type TargetType struct {
Kind string
Config interface{}
}
type VersionType ¶
Click to show internal directories.
Click to hide internal directories.