Documentation
¶
Overview ¶
Package pb holds Protocol Buffers for the feed package.
Index ¶
- Constants
- Variables
- type Feed
- func (x *Feed) ClearName()
- func (x *Feed) ClearSource()
- func (x *Feed) GetName() string
- func (x *Feed) GetSource() *Source
- func (x *Feed) HasName() bool
- func (x *Feed) HasSource() bool
- func (*Feed) ProtoMessage()
- func (x *Feed) ProtoReflect() protoreflect.Message
- func (x *Feed) Reset()
- func (x *Feed) SetName(v string)
- func (x *Feed) SetSource(v *Source)
- func (x *Feed) String() string
- type FeedSet
- type FeedSet_builder
- type Feed_builder
- type Source
- func (x *Source) ClearFile()
- func (x *Source) ClearKind()
- func (x *Source) ClearSource()
- func (x *Source) ClearUrl()
- func (x *Source) GetFile() string
- func (x *Source) GetKind() Source_Kind
- func (x *Source) GetUrl() string
- func (x *Source) HasFile() bool
- func (x *Source) HasKind() bool
- func (x *Source) HasSource() bool
- func (x *Source) HasUrl() bool
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) SetFile(v string)
- func (x *Source) SetKind(v Source_Kind)
- func (x *Source) SetUrl(v string)
- func (x *Source) String() string
- func (x *Source) WhichSource() case_Source_Source
- type Source_Kind
- type Source_builder
Constants ¶
View Source
const Source_File_case case_Source_Source = 1
View Source
const Source_Source_not_set_case case_Source_Source = 0
View Source
const Source_Url_case case_Source_Source = 2
Variables ¶
View Source
var ( Source_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_RSS", 2: "KIND_ATOM", } Source_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_RSS": 1, "KIND_ATOM": 2, } )
Enum value maps for Source_Kind.
View Source
var File_feed_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
Feed describes an RSS or Atom feed.
Next ID: 3
func (*Feed) ClearSource ¶
func (x *Feed) ClearSource()
func (*Feed) ProtoMessage ¶
func (*Feed) ProtoMessage()
func (*Feed) ProtoReflect ¶
func (x *Feed) ProtoReflect() protoreflect.Message
type FeedSet ¶
type FeedSet struct {
// contains filtered or unexported fields
}
FeedSet contains feed definitions.
Next ID: 2
func (*FeedSet) ProtoMessage ¶
func (*FeedSet) ProtoMessage()
func (*FeedSet) ProtoReflect ¶
func (x *FeedSet) ProtoReflect() protoreflect.Message
type FeedSet_builder ¶
type FeedSet_builder struct {
// Feeds is a list of feeds.
Feeds []*Feed
// contains filtered or unexported fields
}
func (FeedSet_builder) Build ¶
func (b0 FeedSet_builder) Build() *FeedSet
type Feed_builder ¶
type Feed_builder struct {
// Name is a human description of the feed.
Name *string
// Source configures where the feed comes from: a file, an URL, etc.
Source *Source
// contains filtered or unexported fields
}
func (Feed_builder) Build ¶
func (b0 Feed_builder) Build() *Feed
type Source ¶
type Source struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
Source definesa local or remote feed.
Next ID: 4
func (*Source) ClearSource ¶
func (x *Source) ClearSource()
func (*Source) GetKind ¶
func (x *Source) GetKind() Source_Kind
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
func (*Source) SetKind ¶
func (x *Source) SetKind(v Source_Kind)
func (*Source) WhichSource ¶
func (x *Source) WhichSource() case_Source_Source
type Source_Kind ¶
type Source_Kind int32
Kind lists supported feed types.
Next ID: 3
const ( Source_KIND_UNSPECIFIED Source_Kind = 0 Source_KIND_RSS Source_Kind = 1 Source_KIND_ATOM Source_Kind = 2 )
func (Source_Kind) Descriptor ¶
func (Source_Kind) Descriptor() protoreflect.EnumDescriptor
func (Source_Kind) Enum ¶
func (x Source_Kind) Enum() *Source_Kind
func (Source_Kind) Number ¶
func (x Source_Kind) Number() protoreflect.EnumNumber
func (Source_Kind) String ¶
func (x Source_Kind) String() string
func (Source_Kind) Type ¶
func (Source_Kind) Type() protoreflect.EnumType
type Source_builder ¶
type Source_builder struct {
// Fields of oneof xxx_hidden_Source:
// File defines a local feed, stored in a file.
File *string
// Url defines a remote feed.
Url *string
// -- end of xxx_hidden_Source
// Kind defines the type of the source.
Kind *Source_Kind
// contains filtered or unexported fields
}
func (Source_builder) Build ¶
func (b0 Source_builder) Build() *Source
Click to show internal directories.
Click to hide internal directories.