data

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterValidators

func RegisterValidators(validate *validator.Validate)

RegisterValidators registers field validators

Types

type Blog

type Blog struct {
	FeedURL     string        `json:"feedURL" validate:"url"`
	Author      string        `json:"author" valiadate:"required"`
	Title       string        `json:"title"`
	Description string        `json:"description"`
	Rating      rating.Rating `json:"rating"`
	Level       level.Level   `json:"level"`
	Tags        []tag.Tag     `json:"tags"`
	QuickNote   string        `json:"qickNote"`
}

Blog is the blog data.

type FetchBlogs

type FetchBlogs struct {
	Rating rating.Rating `json:"rating"`
	Level  level.Level   `json:"level"`
	Tags   []tag.Tag     `json:"tags"`
	Count  uint32        `json:"count" validate:"min=10"`
	After  string        `json:"after" validate:"optObjectID"`
}

FetchBlogs is data for fetching blogs.

Jump to

Keyboard shortcuts

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