Documentation ¶
Index ¶
- Variables
- type Item
- type Service
- func (s *Service) Create(ctx context.Context, subscriptionID string, url string, title string, ...) (*Item, error)
- func (s *Service) Get(ctx context.Context, userID string, id string) (*Item, error)
- func (s *Service) List(ctx context.Context, userID string, pageSize int, createdLT *time.Time, ...) ([]*Item, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("not found") ErrAlreadyExists = fmt.Errorf("item already exists") )
Known errors.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { ID string URL string Title string SubscriptionID string Created *time.Time Summary *string SubscriptionTitle *string SubscriptionIcon *string }
Item is the item model.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service allows to manage items resource.
func NewService ¶
NewService returns new items service.
func (*Service) Create ¶
func (s *Service) Create( ctx context.Context, subscriptionID string, url string, title string, date *time.Time, summary *string, ) (*Item, error)
Create creates a item from URL.
Click to show internal directories.
Click to hide internal directories.