Documentation ¶
Index ¶
- Constants
- Variables
- func NewPostgresReader(meta *reader.Meta, conf conf.MapConf) (reader.Reader, error)
- func ParsePostgresDatetime(str string) (time.Time, error)
- type PostgresReader
- func (r *PostgresReader) Close() error
- func (r *PostgresReader) Name() string
- func (r *PostgresReader) ReadData() (models.Data, int64, error)
- func (r *PostgresReader) ReadLine() (string, error)
- func (r *PostgresReader) SetMode(mode string, v interface{}) error
- func (r *PostgresReader) Source() string
- func (r *PostgresReader) Start() error
- func (r *PostgresReader) Status() models.StatsInfo
- func (r *PostgresReader) SyncMeta()
Constants ¶
View Source
const PgtimeFormat = "2006-01-02 15:04:05.000000"
Variables ¶
View Source
var PostgresTimeFormat = []string{"2006-01-02 15:04:05.000000", "2006-01-02 15:04:05", "2006-1-2 15:4:5.000000", "2006-1-2 15:4:5"}
Functions ¶
func NewPostgresReader ¶
Types ¶
type PostgresReader ¶
func (*PostgresReader) Close ¶
func (r *PostgresReader) Close() error
func (*PostgresReader) Name ¶
func (r *PostgresReader) Name() string
func (*PostgresReader) ReadLine ¶
func (r *PostgresReader) ReadLine() (string, error)
func (*PostgresReader) SetMode ¶
func (r *PostgresReader) SetMode(mode string, v interface{}) error
func (*PostgresReader) Source ¶
func (r *PostgresReader) Source() string
func (*PostgresReader) Start ¶
func (r *PostgresReader) Start() error
func (*PostgresReader) Status ¶
func (r *PostgresReader) Status() models.StatsInfo
func (*PostgresReader) SyncMeta ¶
func (r *PostgresReader) SyncMeta()
SyncMeta 从队列取数据时同步队列,作用在于保证数据不重复
Click to show internal directories.
Click to hide internal directories.