handler

package
v0.0.0-...-2af310e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCrawl

func NewCrawl(st store.Store) *crawl

Types

type Crawler

type Crawler interface {
	Fetch(f *pb.Feed) error
	FetchAll()
}

type Rss

type Rss struct {
	// contains filtered or unexported fields
}

func NewRss

func NewRss(st store.Store, cr Crawler) *Rss

func (*Rss) Add

func (e *Rss) Add(ctx context.Context, req *pb.AddRequest, rsp *pb.AddResponse) error

func (*Rss) DeleteData

func (e *Rss) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error

func (*Rss) Feed

func (e *Rss) Feed(ctx context.Context, req *pb.FeedRequest, rsp *pb.FeedResponse) error

func (*Rss) List

func (e *Rss) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error

func (*Rss) Remove

func (e *Rss) Remove(ctx context.Context, req *pb.RemoveRequest, rsp *pb.RemoveResponse) error

func (*Rss) Usage

func (e *Rss) Usage(ctx context.Context, request *adminpb.UsageRequest, response *adminpb.UsageResponse) error

Jump to

Keyboard shortcuts

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