rss

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "rss"
View Source
const (
	// SUFFIX is the parameter used to request data in the RSS3 format from RSSHub
	// https://docs.rsshub.app/guide/parameters#output-formats
	SUFFIX = "rss3"
)

Variables

This section is empty.

Functions

func NewComponent

func NewComponent(_ context.Context, apiServer *echo.Echo, config []*config.Module) component.Component

Types

type Component

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

func (*Component) CollectMetric

func (h *Component) CollectMetric(ctx context.Context, value string)

func (*Component) Handler

func (h *Component) Handler(ctx echo.Context) error

func (*Component) InitMeter

func (h *Component) InitMeter() (err error)

func (*Component) Name

func (h *Component) Name() string

type Option

type Option struct {
	Authentication OptionAuthentication `json:"authentication" mapstructure:"authentication"`
}

func NewOption

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

type OptionAuthentication

type OptionAuthentication struct {
	AccessKey string `json:"access_key" mapstructure:"access_key"`
}

type Response

type Response struct {
	Data []*activityx.Activity `json:"data"`
}

Jump to

Keyboard shortcuts

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