pb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package pb holds Protocol Buffers for the feed package.

Index

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.

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) ClearName

func (x *Feed) ClearName()

func (*Feed) ClearSource

func (x *Feed) ClearSource()

func (*Feed) GetName

func (x *Feed) GetName() string

func (*Feed) GetSource

func (x *Feed) GetSource() *Source

func (*Feed) HasName

func (x *Feed) HasName() bool

func (*Feed) HasSource

func (x *Feed) HasSource() bool

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect

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

func (*Feed) Reset

func (x *Feed) Reset()

func (*Feed) SetName

func (x *Feed) SetName(v string)

func (*Feed) SetSource

func (x *Feed) SetSource(v *Source)

func (*Feed) String

func (x *Feed) String() string

type FeedSet

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

FeedSet contains feed definitions.

Next ID: 2

func (*FeedSet) GetFeeds

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

func (*FeedSet) ProtoMessage

func (*FeedSet) ProtoMessage()

func (*FeedSet) ProtoReflect

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

func (*FeedSet) Reset

func (x *FeedSet) Reset()

func (*FeedSet) SetFeeds

func (x *FeedSet) SetFeeds(v []*Feed)

func (*FeedSet) String

func (x *FeedSet) String() string

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) ClearFile

func (x *Source) ClearFile()

func (*Source) ClearKind

func (x *Source) ClearKind()

func (*Source) ClearSource

func (x *Source) ClearSource()

func (*Source) ClearUrl

func (x *Source) ClearUrl()

func (*Source) GetFile

func (x *Source) GetFile() string

func (*Source) GetKind

func (x *Source) GetKind() Source_Kind

func (*Source) GetUrl

func (x *Source) GetUrl() string

func (*Source) HasFile

func (x *Source) HasFile() bool

func (*Source) HasKind

func (x *Source) HasKind() bool

func (*Source) HasSource

func (x *Source) HasSource() bool

func (*Source) HasUrl

func (x *Source) HasUrl() bool

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) SetFile

func (x *Source) SetFile(v string)

func (*Source) SetKind

func (x *Source) SetKind(v Source_Kind)

func (*Source) SetUrl

func (x *Source) SetUrl(v string)

func (*Source) String

func (x *Source) String() string

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) 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

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

Jump to

Keyboard shortcuts

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