Documentation ¶
Index ¶
- Variables
- func CloseAllDBConn()
- func DBConn(dsn interface{}) (db sqlbuilder.Database, err error)
- func Export(pageID uint, result *exec.Recv, collected echo.Store, ...) error
- type Mapping
- type Mappings
- func (m *Mappings) Add(mp *Mapping) *Mappings
- func (m *Mappings) Export(result *exec.Recv, data echo.Store, config *dbschema.NgingCollectorExport, ...) error
- func (m *Mappings) Export2API(result *exec.Recv, data echo.Store, config *dbschema.NgingCollectorExport, ...) error
- func (m *Mappings) Export2DB(result *exec.Recv, data echo.Store, config *dbschema.NgingCollectorExport, ...) error
- func (m *Mappings) String() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSameTableName = errors.New(`same table name`)
Functions ¶
func CloseAllDBConn ¶
func CloseAllDBConn()
func DBConn ¶
func DBConn(dsn interface{}) (db sqlbuilder.Database, err error)
Types ¶
type Mapping ¶
type Mappings ¶
func NewMappings ¶
func NewMappings() *Mappings
func (*Mappings) Export ¶
func (m *Mappings) Export(result *exec.Recv, data echo.Store, config *dbschema.NgingCollectorExport, noticeSender sender.Notice) error
Export 导出到数据库 result - 结果 data - 采集结果
func (*Mappings) Export2API ¶
func (m *Mappings) Export2API(result *exec.Recv, data echo.Store, config *dbschema.NgingCollectorExport, noticeSender sender.Notice) error
Export2API 导出到WebAPI result - 结果 data - 本次采集结果
Click to show internal directories.
Click to hide internal directories.