modelyesod

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescriptionGeneratorActionConfigSchema added in v0.2.10

func GetDescriptionGeneratorActionConfigSchema() (string, error)

func GetKeywordFilterActionConfigSchema added in v0.2.10

func GetKeywordFilterActionConfigSchema() (string, error)

func GetSimpleKeywordFilterActionConfigSchema added in v0.2.10

func GetSimpleKeywordFilterActionConfigSchema() (string, error)

Types

type DescriptionGeneratorActionConfig added in v0.2.10

type DescriptionGeneratorActionConfig struct{}

type FeedActionSet added in v0.2.10

type FeedActionSet struct {
	ID          model.InternalID
	Name        string
	Description string
	Actions     []*modeltiphereth.FeatureRequest
}

type FeedConfig

type FeedConfig struct {
	ID                model.InternalID
	Name              string
	FeedURL           string
	Category          string
	AuthorAccount     model.InternalID
	Source            string
	Status            FeedConfigStatus
	PullInterval      time.Duration
	LatestPullTime    time.Time
	LatestPullStatus  FeedConfigPullStatus
	LatestPullMessage string
	HideItems         bool
	ActionSets        []model.InternalID
}

type FeedConfigPullStatus added in v0.2.10

type FeedConfigPullStatus int
const (
	FeedConfigPullStatusUnspecified FeedConfigPullStatus = iota
	FeedConfigPullStatusProcessing
	FeedConfigPullStatusSuccess
	FeedConfigPullStatusFailed
)

type FeedConfigStatus

type FeedConfigStatus int
const (
	FeedConfigStatusUnspecified FeedConfigStatus = iota
	FeedConfigStatusActive
	FeedConfigStatusSuspend
)

type FeedItemCollection added in v0.2.10

type FeedItemCollection struct {
	ID          model.InternalID
	Name        string
	Description string
	Category    string
}

type FeedItemDigest added in v0.1.3

type FeedItemDigest struct {
	FeedID              model.InternalID
	ItemID              model.InternalID
	AvatarURL           string
	Authors             string
	PublishedParsedTime time.Time
	Title               string
	ShortDescription    string
	ImageUrls           []string
	PublishPlatform     string
	FeedConfigName      string
	FeedAvatarURL       string
	ReadCount           int64
}

type FeedWithConfig

type FeedWithConfig struct {
	FeedConfig *FeedConfig
	Feed       *modelfeed.Feed
}

type GroupFeedItemsBy added in v0.0.9

type GroupFeedItemsBy int
const (
	GroupFeedItemsByUnspecified GroupFeedItemsBy = iota
	GroupFeedItemsByYear
	GroupFeedItemsByMonth
	GroupFeedItemsByDay
	GroupFeedItemsByOverall
)

type KeywordFilter added in v0.2.10

type KeywordFilter struct {
	Field    string `json:"field"    jsonschema:"title=field,enum=author,enum=title,enum=description,enum=content"`
	Equation string `` /* 167-byte string literal not displayed */
	Value    string `json:"value"    jsonschema:"title=value"`
}

type KeywordFilterActionConfig added in v0.2.10

type KeywordFilterActionConfig struct {
	OrList []*KeywordFilterAndList `json:"or_list" jsonschema:"title=OR list"`
}

type KeywordFilterAndList added in v0.2.10

type KeywordFilterAndList struct {
	AndList []*KeywordFilter `json:"and_list" jsonschema:"title=AND list"`
}

type KeywordFilterEquation added in v0.2.10

type KeywordFilterEquation string
const (
	KeywordFilterEquationEqual        KeywordFilterEquation = "equal"
	KeywordFilterEquationNotEqual     KeywordFilterEquation = "not_equal"
	KeywordFilterEquationContain      KeywordFilterEquation = "contain"
	KeywordFilterEquationNotContain   KeywordFilterEquation = "not_contain"
	KeywordFilterEquationStartWith    KeywordFilterEquation = "start_with"
	KeywordFilterEquationNotStartWith KeywordFilterEquation = "not_start_with"
	KeywordFilterEquationEndWith      KeywordFilterEquation = "end_with"
	KeywordFilterEquationNotEndWith   KeywordFilterEquation = "not_end_with"
)

type KeywordFilterField added in v0.2.10

type KeywordFilterField string
const (
	KeywordFilterFieldAuthor      KeywordFilterField = "author"
	KeywordFilterFieldTitle       KeywordFilterField = "title"
	KeywordFilterFieldDescription KeywordFilterField = "description"
	KeywordFilterFieldContent     KeywordFilterField = "content"
)

type ListFeedOrder

type ListFeedOrder int
const (
	ListFeedOrderUnspecified ListFeedOrder = iota
	ListFeedOrderNextPull
)

type PullFeed

type PullFeed struct {
	InternalID   model.InternalID
	URL          string
	Source       string
	SystemNotify *modelnetzach.SystemNotify
}

type SimpleKeywordFilterActionConfig added in v0.2.10

type SimpleKeywordFilterActionConfig struct {
	TitleInclude   []string `json:"title_include,omitempty"   jsonschema:"title=Title include"`
	TitleExclude   []string `json:"title_exclude,omitempty"   jsonschema:"title=Title exclude"`
	ContentInclude []string `json:"content_include,omitempty" jsonschema:"title=Content include"`
	ContentExclude []string `json:"content_exclude,omitempty" jsonschema:"title=Content exclude"`
}

Jump to

Keyboard shortcuts

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