smutok/internal/sync/freshrss.go(view raw)
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 |
package sync
import (
"context"
"olexsmir.xyz/smutok/internal/provider"
"olexsmir.xyz/smutok/internal/store"
)
type FreshRSS struct {
store store.Store
api *provider.FreshRSS
}
func NewFreshRSS(store store.Store, api *provider.FreshRSS) *FreshRSS {
return &FreshRSS{
store: store,
api: api,
}
}
func (g *FreshRSS) Sync(ctx context.Context, initial bool) error {
writeToken, err := g.api.GetWriteToken(ctx)
if err != nil {
return err
}
_ = writeToken
return nil
}
|