feeditems

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "/api/v1/feed-items"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func (*Plugin) Init

func (p *Plugin) Init(s storage.FeedItemStorage) error

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 {
	Title      string   `json:"title,omitempty" validate:"omitempty,max=254"`
	Desc       *string  `json:"desc,omitempty"`
	Authors    []string `json:"authors,omitempty" validate:"omitempty,dive,min=1,max=254"`
	Categories []string `json:"categories,omitempty" validate:"omitempty,dive,min=1,max=254"`
}

func (UpdateRequest) FeedItem

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

Jump to

Keyboard shortcuts

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