feeds

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "/api/v1/feeds"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Languages []string `json:"languages,omitempty" validate:"required,min=1,dive,bcp47_language_tag"`
	Host      string   `json:"host,omitempty" validate:"omitempty,max=254"`
	Title     string   `json:"title,omitempty" validate:"required,max=254"`
	Link      string   `json:"link,omitempty" validate:"required,url"`
	Enabled   bool     `json:"enabled,omitempty"`
}

func (CreateRequest) Feed

func (r CreateRequest) Feed(by int64) models.Feed

type Plugin

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

func (*Plugin) Init

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns user-friendly plugin name

func (*Plugin) Register

func (p *Plugin) Register(mux *flow.Mux)

type UpdateRequest

type UpdateRequest struct {
	Languages []string `json:"languages,omitempty" validate:"omitempty,dive,bcp47_language_tag"`
	Host      string   `json:"host,omitempty" validate:"omitempty,max=254"`
	Title     string   `json:"title,omitempty" validate:"omitempty,max=254"`
	Link      string   `json:"link,omitempty" validate:"omitempty,url"`
	Enabled   *bool    `json:"enabled,omitempty"`
}

func (UpdateRequest) Feed

func (r UpdateRequest) Feed(id string) models.Feed

Jump to

Keyboard shortcuts

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