Versions in this module Expand all Collapse all v1 v1.2.0 Jan 21, 2019 v1.1.0 Jan 6, 2019 Changes in this version + func ImportComments(p ImportParams) (int, error) + type AutoBackup struct + BackupLocation string + Duration time.Duration + Exporter Exporter + KeepMax int + SiteID string + func (ab AutoBackup) Do(ctx context.Context) + type Disqus struct + DataStore Store + func (d *Disqus) Import(r io.Reader, siteID string) (size int, err error) + type Exporter interface + Export func(w io.Writer, siteID string) (int, error) + type ImportParams struct + DataStore Store + InputFile string + Provider string + SiteID string + type Importer interface + Import func(r io.Reader, siteID string) (int, error) + type Native struct + DataStore Store + func (n *Native) Export(w io.Writer, siteID string) (size int, err error) + func (n *Native) Import(reader io.Reader, siteID string) (size int, err error) + type Store interface + Create func(comment store.Comment) (commentID string, err error) + DeleteAll func(siteID string) error + Find func(locator store.Locator, sort string) ([]store.Comment, error) + List func(siteID string, limit int, skip int) ([]store.PostInfo, error) + Metas func(siteID string) (umetas []service.UserMetaData, pmetas []service.PostMetaData, err error) + SetMetas func(siteID string, umetas []service.UserMetaData, pmetas []service.PostMetaData) error + type WordPress struct + DataStore Store + func (w *WordPress) Convert(text string) string + func (w *WordPress) Import(r io.Reader, siteID string) (size int, err error)