postquery

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SortNameScore     = SortName("score")
	SortNameChangedAt = SortName("changed_at")
	SortNameCreatedAt = SortName("created_at")
	SortNameStars     = SortName("stars")
	SortNameComments  = SortName("comments")
	SortNameLikes     = SortName("likes")
)

Concrete properties to sort posts.

View Source
const (
	PropertyNameTitle       = PropertyName("title")
	PropertyNameBody        = PropertyName("body")
	PropertyNameComments    = PropertyName("comments")
	PropertyNameAttachments = PropertyName("attachments")
	PropertyNameAuthor      = PropertyName("author")
	PropertyNameCommentedBy = PropertyName("commented_by")
	PropertyNameLikedBy     = PropertyName("liked_by")
	PropertyNameTag         = PropertyName("tag")
	PropertyNameGroup       = PropertyName("group")
)

Concrete properties to search the keyword from posts

View Source
const (
	DateNameCreatedAt = DateName("created_at")
	DateNameChangedAt = DateName("changed_at")
)

Concrete properties to search the keyword from posts

View Source
const (
	MissingNameTag = MissingName("tag")
)

Concrete properties to search the keyword from posts

Variables

This section is empty.

Functions

func Attachments

func Attachments(value string) string

Attachments searches a keyword from attachments

func Author

func Author(value string) string

Author searches a keyword from author

func Body

func Body(value string) string

Body searches a keyword from body

func CommentedBy

func CommentedBy(value string) string

CommentedBy searches a keyword from commented_by

func Comments

func Comments(value string) string

Comments searches a keyword from comments

func Date

func Date(property DateName, year, month, day int) string

Date specifies the date with property name to search posts

func DateFrom

func DateFrom(property DateName, year, month, day int) string

DateFrom specifies the start date with property name to search posts

func DateRange

func DateRange(property DateName, year1, month1, day1, year2, month2, day2 int) string

DateRange specifies the date range with property name to search posts

func DateTo

func DateTo(property DateName, year, month, day int) string

DateTo specifies the end date with property name to search posts

func Group

func Group(value string) string

Group searches a keyword from group

func HasStar

func HasStar() string

HasStar :

func IsDraft

func IsDraft() string

IsDraft :

func IsShared

func IsShared() string

IsShared :

func IsUnread

func IsUnread() string

IsUnread :

func Join

func Join(queries ...string) string

func LikedBy

func LikedBy(value string) string

LikedBy searches a keyword from liked_by

func Missing

func Missing(property MissingName) string

Missing specifies a property to search posts which is not filled

func Or

func Or() string

Or :

func Property

func Property(property PropertyName, keyword string) string

Property specifies a property to search the keyword from posts

func Sort

func Sort(property SortName, asc bool) string

Sort specifies sort order to get posts.

func Tag

func Tag(value string) string

Tag searches a keyword from tag

func Title

func Title(value string) string

Title searches a keyword from title

Types

type DateName

type DateName string

DateName specifies a proerty to search the keyword from posts

func (DateName) String

func (s DateName) String() string

type MissingName

type MissingName string

MissingName specifies a property to search the keyword from posts

func (MissingName) String

func (s MissingName) String() string

type PropertyName

type PropertyName string

PropertyName specifies a property to search the keyword from posts

func (PropertyName) String

func (s PropertyName) String() string

type SortName

type SortName string

SortName specifies a property to sort posts.

func (SortName) String

func (s SortName) String() string

Jump to

Keyboard shortcuts

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