api

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoAPI

func EchoAPI() *echo.Echo

EchoAPI Deprecated interfaces. Will be removed in v2.0

func V1GetFeed

func V1GetFeed(ctx echo.Context) error

V1GetFeed godoc

@Description	Generates RSS/Atom feed
@Tags			feeds fetch
@Accept			json
@Produce		application/atom+xml
@Produce		application/feed+json
@Produce		application/rss+xml
@Param			format		path	brrss.FeedFormat	true	"Output feed format"
@Param			url			query	string				true	"Source URL"					format(string)
@Param			item		query	string				true	"Article selector"				format(string)
@Param			feed-title	query	string				false	"Feed title selector"			format(string)
@Param			feed-desc	query	string				false	"Feed description selector"		format(string)
@Param			item-time	query	string				false	"Article time selector"			format(string)
@Param			item-desc	query	string				false	"Article description selector"	format(string)
@Param			item-link	query	string				false	"Article link selector"			format(string)
@Param			item-title	query	string				false	"Article title selector"		format(string)
@Param			req-headers	query	[]string			false	"Outgoing request headers"		collectionFormat(multi)
@Router			/v1/feed/{format} [get]
@Security		ApiKeyAuth || BasicAuth

Types

type API added in v1.3.0

type API struct {
	Echo *echo.Echo
	// contains filtered or unexported fields
}

func (*API) New added in v1.3.0

func (a *API) New() *echo.Echo

func (*API) NewOnce added in v1.3.0

func (a *API) NewOnce(setup SetupFunc) *echo.Echo

type SetupFunc added in v1.3.0

type SetupFunc func(api *API)

Jump to

Keyboard shortcuts

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