importing

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
}

type Service

type Service struct {
	*feed.Service
}

Service handles feed subscription import operations.

func NewService

func NewService(feedService *feed.Service) *Service

NewService initializes and returns a new Service.

func (*Service) ImportFromOPMLDocument

func (s *Service) ImportFromOPMLDocument(userUUID string, document *opml.Document) (Status, error)

ImportFromOPMLDocument imports feed subscriptions and categories from an OPML document.

type Status

type Status struct {
	Categories    StatusCount
	Feeds         StatusCount
	Subscriptions StatusCount
}

func (*Status) AdminSummary

func (s *Status) AdminSummary() string

func (*Status) UserSummary

func (s *Status) UserSummary() string

type StatusCount

type StatusCount struct {
	Total   uint
	Created uint
}

func (*StatusCount) Inc

func (sc *StatusCount) Inc(created bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL