rss

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 20 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, path, value string)

func (*Component) CollectTrace added in v0.5.19

func (h *Component) CollectTrace(ctx context.Context, path, 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