/
type.go
33 lines (30 loc) · 863 Bytes
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ddsmetadata
import (
"github.com/sirupsen/logrus"
)
type MetaData interface {
Init() error
SetPosition(seq uint64, csn uint64) error
GetPosition() (*uint64, *uint64, error)
SetXid(xid []byte) error
GetXid() ([]byte, error)
SetLastUpdateTime(ltime uint64) error
GetLastUpdateTime() (*uint64, error)
SetCreateTime(c uint64) error
GetCreateTime() (*uint64, error)
SetDataBaseType(r string) error
GetDataBaseType() (*string, error)
SetProcessType(r string) error
GetProcessType() (*string, error)
SetFilePosition(seq uint64, rba uint64) error
GetFilePosition() (*uint64, *uint64, error)
Sync() error
Close() error
SetStartTime() error
GetStartTime() (uint64, error)
SetTransactionBeginTime(t uint64) error
GetTransactionBeginTime() (uint64, error)
}
type MetaDatas interface {
Registry(*MdHandle, *logrus.Logger) (MetaData, error)
}