Documentation ¶
Index ¶
Constants ¶
View Source
const AliyunDtsSchema = `` /* 10904-byte string literal not displayed */
View Source
const DefaultExpireTime = 600
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliOss ¶
func (*AliOss) GenSignature ¶
func (a *AliOss) GenSignature(dir string) (*OssSignature, error)
GenSignature 生成oss直传token
type DtsRecord ¶
type DtsRecord struct { Version int `mapstructure:"version"` Id int64 `mapstructure:"id"` SourceTimeStamp int64 `mapstructure:"sourceTimestamp"` SourceTxId string `mapstructure:"sourceTxid"` ObjectName map[string]string `mapstructure:"objectName"` // 数据库名.表名 Operation string `mapstructure:"operation"` Fields map[string]interface{} `mapstructure:"fields"` // 字段slice BeforeImages map[string]interface{} `mapstructure:"beforeImages"` // 改变前 AfterImages map[string]interface{} `mapstructure:"afterImages"` // 改变后 // 额外的字段 Database string Table string TableFields []*DtsField }
DtsRecord 原始的记录
func (*DtsRecord) GetAfterColumns ¶
func (*DtsRecord) GetBeforeColumns ¶
type DtsTypeBytes ¶
type DtsTypeBytes struct {
Value []byte `mapstructure:"value"`
}
type DtsTypeDateTime ¶
type DtsTypeDateTime struct { Year map[string]interface{} `mapstructure:"year"` Month map[string]interface{} `mapstructure:"month"` Day map[string]interface{} `mapstructure:"day"` Hour map[string]interface{} `mapstructure:"hour"` Minute map[string]interface{} `mapstructure:"minute"` Second map[string]interface{} `mapstructure:"second"` }
type DtsTypeTimestamp ¶
type DtsTypeTimestamp struct {
Timestamp int64 `mapstructure:"timestamp"`
}
type DtsTypeTimestampWithTimeZone ¶
type DtsTypeTimestampWithTimeZone struct {
Value DtsTypeDateTime `mapstructure:"value"`
}
type DtsTypeValue ¶
type DtsTypeValue struct {
Value string `mapstructure:"value"`
}
type OssPolicyConfig ¶
Click to show internal directories.
Click to hide internal directories.