rss

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_rss_proto protoreflect.FileDescriptor

Functions

func NewRssEndpoints

func NewRssEndpoints() []*api.Endpoint

func RegisterRssHandler

func RegisterRssHandler(s server.Server, hdlr RssHandler, opts ...server.HandlerOption) error

Types

type AddRequest

type AddRequest struct {

	// rss feed name
	// eg. a16z
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// rss feed url
	// eg. http://a16z.com/feed/
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// category to add
	Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

func (*AddRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetCategory

func (x *AddRequest) GetCategory() string

func (*AddRequest) GetName

func (x *AddRequest) GetName() string

func (*AddRequest) GetUrl

func (x *AddRequest) GetUrl() string

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

func (x *AddRequest) ProtoReflect() protoreflect.Message

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type AddResponse

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

func (*AddResponse) Descriptor deprecated

func (*AddResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

func (x *AddResponse) ProtoReflect() protoreflect.Message

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

type Entry

type Entry struct {

	// unique id of the entry
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// the rss feed where it came from
	Feed string `protobuf:"bytes,2,opt,name=feed,proto3" json:"feed,omitempty"`
	// rss feed url of the entry
	Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	// title of the entry
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// article summary
	Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary,omitempty"`
	// article content
	Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	// data of the entry
	Date string `protobuf:"bytes,7,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetContent

func (x *Entry) GetContent() string

func (*Entry) GetDate

func (x *Entry) GetDate() string

func (*Entry) GetFeed

func (x *Entry) GetFeed() string

func (*Entry) GetId

func (x *Entry) GetId() string
func (x *Entry) GetLink() string

func (*Entry) GetSummary

func (x *Entry) GetSummary() string

func (*Entry) GetTitle

func (x *Entry) GetTitle() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type Feed

type Feed struct {

	// unique id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// rss feed name
	// eg. a16z
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// rss feed url
	// eg. http://a16z.com/feed/
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// category of the feed
	Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Feed) Descriptor deprecated

func (*Feed) Descriptor() ([]byte, []int)

Deprecated: Use Feed.ProtoReflect.Descriptor instead.

func (*Feed) GetCategory

func (x *Feed) GetCategory() string

func (*Feed) GetId

func (x *Feed) GetId() string

func (*Feed) GetName

func (x *Feed) GetName() string

func (*Feed) GetUrl

func (x *Feed) GetUrl() string

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect

func (x *Feed) ProtoReflect() protoreflect.Message

func (*Feed) Reset

func (x *Feed) Reset()

func (*Feed) String

func (x *Feed) String() string

type FeedRequest

type FeedRequest struct {

	// rss feed name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// limit entries returned
	Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// offset entries
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedRequest) Descriptor deprecated

func (*FeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use FeedRequest.ProtoReflect.Descriptor instead.

func (*FeedRequest) GetLimit

func (x *FeedRequest) GetLimit() int64

func (*FeedRequest) GetName

func (x *FeedRequest) GetName() string

func (*FeedRequest) GetOffset

func (x *FeedRequest) GetOffset() int64

func (*FeedRequest) ProtoMessage

func (*FeedRequest) ProtoMessage()

func (*FeedRequest) ProtoReflect

func (x *FeedRequest) ProtoReflect() protoreflect.Message

func (*FeedRequest) Reset

func (x *FeedRequest) Reset()

func (*FeedRequest) String

func (x *FeedRequest) String() string

type FeedResponse

type FeedResponse struct {
	Entries []*Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedResponse) Descriptor deprecated

func (*FeedResponse) Descriptor() ([]byte, []int)

Deprecated: Use FeedResponse.ProtoReflect.Descriptor instead.

func (*FeedResponse) GetEntries

func (x *FeedResponse) GetEntries() []*Entry

func (*FeedResponse) ProtoMessage

func (*FeedResponse) ProtoMessage()

func (*FeedResponse) ProtoReflect

func (x *FeedResponse) ProtoReflect() protoreflect.Message

func (*FeedResponse) Reset

func (x *FeedResponse) Reset()

func (*FeedResponse) String

func (x *FeedResponse) String() string

type ListRequest

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

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Feeds []*Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetFeeds

func (x *ListResponse) GetFeeds() []*Feed

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type RemoveRequest

type RemoveRequest struct {

	// rss feed name
	// eg. a16z
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

func (*RemoveRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetName

func (x *RemoveRequest) GetName() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

func (x *RemoveRequest) ProtoReflect() protoreflect.Message

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type RemoveResponse

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

func (*RemoveResponse) Descriptor deprecated

func (*RemoveResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

func (x *RemoveResponse) ProtoReflect() protoreflect.Message

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

type RssService

type RssService interface {
	Add(ctx context.Context, in *AddRequest, opts ...client.CallOption) (*AddResponse, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...client.CallOption) (*RemoveResponse, error)
	Feed(ctx context.Context, in *FeedRequest, opts ...client.CallOption) (*FeedResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
}

func NewRssService

func NewRssService(name string, c client.Client) RssService

Jump to

Keyboard shortcuts

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