rss

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSSHubUMSPath = "format=ums"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

func NewHub

func NewHub(_ context.Context, config *config.File) *Hub

NewHub creates a new rss hub

func (*Hub) GetRSSHubHandler

func (h *Hub) GetRSSHubHandler(c echo.Context) error

GetRSSHubHandler get rsshub data from rsshub node

type Option

type Option struct {
	Authentication OptionAuthentication `yaml:"authentication"`
}

func NewOption

func NewOption(options *config.Options) (*Option, error)

type OptionAuthentication

type OptionAuthentication struct {
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
	AccessKey  string `yaml:"access_key"`
	AccessCode string `yaml:"access_code"`
}

type Response

type Response struct {
	Data []*schema.Feed `json:"data"`
}

Jump to

Keyboard shortcuts

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