Page

package
v0.0.0-...-f1800c5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INDEX_PAGE_TITLE_MARK       = "PAGETITLE_F6367D76-B4D0-4113-A4E3-8E0A61D28C34"
	INDEX_NEWS_TITLE_MARK       = "NEWSTITLE_E6F6DF62-5BC6-4172-86F1-1250F8618E0F"
	INDEX_NEWS_URL_MARK         = "NEWSURL_1C387CE9-FFE9-469F-96E5-E4FAA83DF668"
	INDEX_NEWS_IMAGE_MARK       = "NEWSIMAGE_870BB9B8-20CB-45B0-86F7-BEC643321376"
	INDEX_NEWS_DESCRIPTION_MARK = "NEWS_DESCRIPTION_EC42EA50-E6F7-4561-A298-27A81501B5A4"
	INDEX_NEWS_TIME_MARK        = "NEWSTIME_EC093DDF-B972-4775-9F3E-44CB493E5D07"
	INDEX_LINK_MORE_MARK        = "LINKMORE_F9058572-9D4A-4B24-9624-fEBAAD809E5E"
	MORE_LINK_INDEX_MARK        = "LINKINDEX_6614B257-FD1E-40CE-97B3-818135A607EC"
	MORE_PAGE_LINK_MARK         = "LINKMOREPAGE_918C2F59-98CF-4600-B114-F1EF7514C0A9"
)
View Source
const (
	INDEX_PAGE_SIZE_5  = "5"
	INDEX_PAGE_SIZE_10 = "10"
	INDEX_PAGE_SIZE_20 = "20"
	INDEX_PAGE_SIZE_30 = "30"
)
View Source
const (
	MARKDOWN_BLANK = "BLANK"
	MARKDOWN_NEWS  = "NEWS"
)
View Source
const (
	ACTIVE   = "ACTIVE"
	RECYCLED = "RECYCLED"
)
View Source
const (
	MARKDOWN = "MARKDOWN"
	HTML     = "HTML"
	LINK     = "LINK"
	INDEX    = "INDEX"
)

Variables

This section is empty.

Functions

func ConvertPageSize2Int

func ConvertPageSize2Int(pageSize string) (int, error)

func GetNormalFile

func GetNormalFile(files []NormalFile, filePath string) int

func IsPageOutputFileEmpty

func IsPageOutputFileEmpty(po PageOutputFile) bool

func IsPageSourceFileEmpty

func IsPageSourceFileEmpty(ps PageSourceFile) bool

func ResetPageOutputFile

func ResetPageOutputFile(po PageOutputFile)

func ResetPageSourceFile

func ResetPageSourceFile(ps PageSourceFile)

Types

type NormalFile

type NormalFile struct {
	FileName     string
	FilePath     string
	LastModified string
}

type PageOutputFile

type PageOutputFile struct {
	ID          string
	Title       string
	Description string
	TitleImage  string
	Type        string
	Author      string
	CreateTime  string
	IsTop       bool
	FilePath    string
}

func NewPageOutputFile

func NewPageOutputFile() PageOutputFile

func NewPageOutputFileP

func NewPageOutputFileP() *PageOutputFile

func (*PageOutputFile) ToJson

func (po *PageOutputFile) ToJson() (string, error)

func (*PageOutputFile) ToString

func (po *PageOutputFile) ToString() string

type PageOutputFileSlice

type PageOutputFileSlice []PageOutputFile

func (PageOutputFileSlice) Len

func (s PageOutputFileSlice) Len() int

func (PageOutputFileSlice) Less

func (s PageOutputFileSlice) Less(i, j int) bool

func (PageOutputFileSlice) Swap

func (s PageOutputFileSlice) Swap(i, j int)

type PageSourceFile

type PageSourceFile struct {
	ID             string
	Title          string
	Description    string
	TitleImage     string
	Type           string //Markdown Html or Link
	Author         string
	CreateTime     string
	LastModified   string
	LastCompiled   string
	SourceFilePath string
	Status         string
	IsTop          bool
	OutputFile     string
}

func NewPageSourceFile

func NewPageSourceFile() PageSourceFile

func NewPageSourceFileP

func NewPageSourceFileP() *PageSourceFile

func (*PageSourceFile) GetProperty

func (ps *PageSourceFile) GetProperty(propertyName string) (string, error)

func (*PageSourceFile) SetProperty

func (ps *PageSourceFile) SetProperty(propertyName, propertyValue string) (bool, error)

func (*PageSourceFile) ToJson

func (ps *PageSourceFile) ToJson() (string, error)

func (*PageSourceFile) ToString

func (ps *PageSourceFile) ToString() string

type PageSourceFileSlice

type PageSourceFileSlice []PageSourceFile

func (PageSourceFileSlice) Len

func (s PageSourceFileSlice) Len() int

func (PageSourceFileSlice) Less

func (s PageSourceFileSlice) Less(i, j int) bool

func (PageSourceFileSlice) Swap

func (s PageSourceFileSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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