Documentation ¶
Index ¶
- Constants
- type ProfileRunInfo
- type ProfileWork
- type Syncer
- func (o *Syncer) DoProfile(work *ProfileWork) (data []interface{}, err error)
- func (o *Syncer) DoProfileRecover(work *ProfileWork)
- func (o *Syncer) DoProfileWithRecord(work *ProfileWork) (ferr error)
- func (o *Syncer) GetMetaToken(profilename string) string
- func (o *Syncer) GetProfile(name string) map[string]interface{}
- func (o *Syncer) GetProfileRunInfo(profilename string) *ProfileRunInfo
- func (o *Syncer) HandleCmd(cmd *global.Cmd) (*global.Cmd, bool, error)
- func (o *Syncer) Lua_handler(phrase string, work *ProfileWork) (interface{}, error)
- func (o Syncer) Lua_request(work *ProfileWork, fields []string, requestargs map[string]interface{}) (ret []interface{}, err error)
- func (o *Syncer) Netease_khistory(phrase string, work *ProfileWork) (interface{}, error)
- func (o Syncer) Netease_request(work *ProfileWork, fields []string, requestargs map[string]interface{}) (data []interface{}, ids []interface{}, err error)
- func (o *Syncer) Netease_snapshot(phrase string, work *ProfileWork) (err error)
- func (o *Syncer) PersistAndCache(work *ProfileWork, data []interface{}) (rdata []interface{}, ids []interface{}, err error)
- func (o *Syncer) Run(name string)
- func (o Syncer) ShenJian_request(work *ProfileWork, fields []string, requestargs map[string]interface{}) (data []interface{}, ids []interface{}, err error)
- func (o *Syncer) ShenJian_snapshot(phrase string, work *ProfileWork) (err error)
- func (o *Syncer) ShowAPI_khistory(phrase string, work *ProfileWork) (err error)
- func (o *Syncer) ShowAPI_request(work *ProfileWork, requestargs map[string]interface{}) (interface{}, error)
- func (o *Syncer) ShowAPI_snapshot(phrase string, work *ProfileWork) (err error)
- func (o *Syncer) Terminate() error
- func (o *Syncer) TuShare_khistory(phrase string, work *ProfileWork) (interface{}, error)
- func (o Syncer) TuShare_request(work *ProfileWork, fields []string, requestargs map[string]interface{}) (ret []interface{}, err error)
- func (o *Syncer) TuShare_stock_group(phrase string, work *ProfileWork) (interface{}, error)
- func (o *Syncer) TuShare_trade_calendar(phrase string, work *ProfileWork) (interface{}, error)
- type SyncerMapperFunc
Constants ¶
View Source
const SHOWAPI_FETCH_META_TOKEN = "meta."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileRunInfo ¶
type ProfileWork ¶
type Syncer ¶
type Syncer struct { Name string // contains filtered or unexported fields }
func (*Syncer) DoProfile ¶
func (o *Syncer) DoProfile(work *ProfileWork) (data []interface{}, err error)
func (*Syncer) DoProfileRecover ¶
func (o *Syncer) DoProfileRecover(work *ProfileWork)
func (*Syncer) DoProfileWithRecord ¶
func (o *Syncer) DoProfileWithRecord(work *ProfileWork) (ferr error)
func (*Syncer) GetMetaToken ¶
func (*Syncer) GetProfile ¶
func (*Syncer) GetProfileRunInfo ¶
func (o *Syncer) GetProfileRunInfo(profilename string) *ProfileRunInfo
func (*Syncer) Lua_handler ¶
func (o *Syncer) Lua_handler(phrase string, work *ProfileWork) (interface{}, error)
func (Syncer) Lua_request ¶
func (o Syncer) Lua_request( work *ProfileWork, fields []string, requestargs map[string]interface{}) (ret []interface{}, err error)
func (*Syncer) Netease_khistory ¶
func (o *Syncer) Netease_khistory(phrase string, work *ProfileWork) (interface{}, error)
func (Syncer) Netease_request ¶
func (o Syncer) Netease_request( work *ProfileWork, fields []string, requestargs map[string]interface{}) (data []interface{}, ids []interface{}, err error)
func (*Syncer) Netease_snapshot ¶
func (o *Syncer) Netease_snapshot( phrase string, work *ProfileWork) (err error)
func (*Syncer) PersistAndCache ¶
func (o *Syncer) PersistAndCache( work *ProfileWork, data []interface{}) (rdata []interface{}, ids []interface{}, err error)
func (Syncer) ShenJian_request ¶
func (o Syncer) ShenJian_request( work *ProfileWork, fields []string, requestargs map[string]interface{}) (data []interface{}, ids []interface{}, err error)
func (*Syncer) ShenJian_snapshot ¶
func (o *Syncer) ShenJian_snapshot( phrase string, work *ProfileWork) (err error)
func (*Syncer) ShowAPI_khistory ¶
func (o *Syncer) ShowAPI_khistory(phrase string, work *ProfileWork) (err error)
func (*Syncer) ShowAPI_request ¶
func (o *Syncer) ShowAPI_request( work *ProfileWork, requestargs map[string]interface{}) (interface{}, error)
func (*Syncer) ShowAPI_snapshot ¶
func (o *Syncer) ShowAPI_snapshot( phrase string, work *ProfileWork) (err error)
func (*Syncer) TuShare_khistory ¶
func (o *Syncer) TuShare_khistory(phrase string, work *ProfileWork) (interface{}, error)
func (Syncer) TuShare_request ¶
func (o Syncer) TuShare_request( work *ProfileWork, fields []string, requestargs map[string]interface{}) (ret []interface{}, err error)
func (*Syncer) TuShare_stock_group ¶
func (o *Syncer) TuShare_stock_group(phrase string, work *ProfileWork) (interface{}, error)
func (*Syncer) TuShare_trade_calendar ¶
func (o *Syncer) TuShare_trade_calendar(phrase string, work *ProfileWork) (interface{}, error)
type SyncerMapperFunc ¶
type SyncerMapperFunc func(data interface{}) interface{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.