feeds

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(
	jctx *lib.JournalistContext,
	fiberRouter *fiber.Router,
)

Types

type FeedCreateModel

type FeedCreateModel struct {
	Name     string `json:"name,omitempty" validate:"omitempty,max=32"`
	URL      string `json:"url" validate:"required,url"`
	Username string `json:"username,omitempty" validate:"omitempty,required_with=password"`
	Password string `json:"password,omitempty" validate:"omitempty,required_with=username"`
	Group    string `json:"group,omitempty" validate:"omitempty,max=32"`
}

type FeedCreateResponse

type FeedCreateResponse struct {
	Success bool           `json:"success"`
	Feed    *FeedShowModel `json:"feed"`
	Message string         `json:"message"`
}

type FeedListResponse

type FeedListResponse struct {
	Success bool             `json:"success"`
	Feeds   *[]FeedShowModel `json:"feeds"`
	Message string           `json:"message"`
}

type FeedShowModel

type FeedShowModel struct {
	ID    string `json:"id"`
	Name  string `json:"name,omitempty" validate:"omitempty,max=32"`
	URL   string `json:"url"`
	Group string `json:"group,omitempty" validate:"omitempty,max=32"`
}

type FeedShowResponse

type FeedShowResponse struct {
	Success bool           `json:"success"`
	Feed    *FeedShowModel `json:"feed"`
	Message string         `json:"message"`
}

Jump to

Keyboard shortcuts

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