property

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlogLocale = Property{
		KeyValue:     "blog_locale",
		DefaultValue: "zh",
		Kind:         reflect.String,
	}
	BlogTitle = Property{
		KeyValue:     "blog_title",
		DefaultValue: "",
		Kind:         reflect.String,
	}
		KeyValue:     "blog_logo",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	BlogURL = Property{
		KeyValue:     "blog_url",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	BlogFavicon = Property{
		KeyValue:     "blog_favicon",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	BlogFooterInfo = Property{
		KeyValue:     "blog_footer_info",
		DefaultValue: "",
		Kind:         reflect.String,
	}
)
View Source
var (
	CommentGravatarDefault = Property{
		KeyValue:     "comment_gravatar_default",
		DefaultValue: "mm",
		Kind:         reflect.String,
	}
	CommentNewNeedCheck = Property{
		KeyValue:     "comment_new_need_check",
		DefaultValue: true,
		Kind:         reflect.Bool,
	}
	CommentNewNotice = Property{
		KeyValue:     "comment_new_notice",
		DefaultValue: true,
		Kind:         reflect.Bool,
	}
	CommentReplyNotice = Property{
		KeyValue:     "comment_reply_notice",
		DefaultValue: false,
		Kind:         reflect.Bool,
	}
	CommentAPIEnabled = Property{
		KeyValue:     "comment_api_enabled",
		DefaultValue: true,
		Kind:         reflect.Bool,
	}
	CommentPageSize = Property{
		KeyValue:     "comment_page_size",
		DefaultValue: 10,
		Kind:         reflect.Int,
	}
	CommentContentPlaceholder = Property{
		KeyValue:     "comment_content_placeholder",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	CommentInternalPluginJs = Property{
		KeyValue:     "comment_internal_plugin_js",
		DefaultValue: "//cdn.jsdelivr.net/npm/halo-comment@latest/dist/halo-comment.min.js",
		Kind:         reflect.String,
	}
	CommentGravatarSource = Property{
		KeyValue:     "gravatar_source",
		DefaultValue: "//gravatar.com/avatar/",
		Kind:         reflect.String,
	}
	CommentBanTime = Property{
		KeyValue:     "comment_ban_time",
		DefaultValue: 10,
		Kind:         reflect.Int,
	}
	CommentRange = Property{
		KeyValue:     "comment_range",
		DefaultValue: 30,
		Kind:         reflect.Int,
	}
)
View Source
var (
	EmailHost = Property{
		KeyValue:     "email_host",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	EmailProtocol = Property{
		KeyValue:     "email_protocol",
		DefaultValue: "smtp",
		Kind:         reflect.String,
	}
	EmailSSLPort = Property{
		KeyValue:     "email_ssl_port",
		DefaultValue: 465,
		Kind:         reflect.Int,
	}
	EmailUsername = Property{
		KeyValue:     "email_username",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	EmailPassword = Property{
		KeyValue:     "email_password",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	EmailFromName = Property{
		KeyValue:     "email_from_name",
		DefaultValue: "",
		Kind:         reflect.String,
	}
	EmailIsEnabled = Property{
		KeyValue:     "email_enabled",
		DefaultValue: false,
		Kind:         reflect.Bool,
	}
)
View Source
var (
	CustomHead = Property{
		DefaultValue: "",
		KeyValue:     "blog_custom_head",
		Kind:         reflect.String,
	}
	CustomContentHead = Property{
		DefaultValue: "",
		KeyValue:     "blog_custom_content_head",
		Kind:         reflect.String,
	}
	StatisticsCode = Property{
		DefaultValue: "",
		KeyValue:     "blog_statistics_code",
		Kind:         reflect.String,
	}
	GlobalAbsolutePathEnabled = Property{
		DefaultValue: true,
		KeyValue:     "global_absolute_path_enabled",
		Kind:         reflect.Bool,
	}
	DefaultEditor = Property{
		DefaultValue: "MARKDOWN",
		KeyValue:     "default_editor",
		Kind:         reflect.String,
	}
	APIAccessKey = Property{
		DefaultValue: nil,
		KeyValue:     "api_access_key",
		Kind:         reflect.String,
	}
	PhotoPageSize = Property{
		DefaultValue: 10,
		KeyValue:     "photos_page_size",
		Kind:         reflect.Int,
	}
	JournalPageSize = Property{
		DefaultValue: 10,
		KeyValue:     "journals_page_size",
		Kind:         reflect.Int,
	}
	JWTSecret = Property{
		DefaultValue: "",
		KeyValue:     "jwt_secret",
		Kind:         reflect.String,
	}
)
View Source
var (
	PostPermalinkType = Property{
		DefaultValue: "DEFAULT",
		KeyValue:     "post_permalink_type",
		Kind:         reflect.String,
	}
	SheetPermalinkType = Property{
		DefaultValue: "SECONDARY",
		KeyValue:     "sheet_permalink_type",
		Kind:         reflect.String,
	}
	CategoriesPrefix = Property{
		DefaultValue: "categories",
		KeyValue:     "categories_prefix",
		Kind:         reflect.String,
	}
	TagsPrefix = Property{
		DefaultValue: "tags",
		KeyValue:     "tags_prefix",
		Kind:         reflect.String,
	}
	ArchivesPrefix = Property{
		DefaultValue: "archives",
		KeyValue:     "archives_prefix",
		Kind:         reflect.String,
	}
	SheetPrefix = Property{
		DefaultValue: "s",
		KeyValue:     "sheet_prefix",
		Kind:         reflect.String,
	}
	LinksPrefix = Property{
		DefaultValue: "links",
		KeyValue:     "links_prefix",
		Kind:         reflect.String,
	}
	PhotosPrefix = Property{
		DefaultValue: "photos",
		KeyValue:     "photos_prefix",
		Kind:         reflect.String,
	}
	JournalsPrefix = Property{
		DefaultValue: "journals",
		KeyValue:     "journals_prefix",
		Kind:         reflect.String,
	}
	PathSuffix = Property{
		DefaultValue: "",
		KeyValue:     "path_suffix",
		Kind:         reflect.String,
	}
)
View Source
var (
	SummaryLength = Property{
		KeyValue:     "post_summary_length",
		DefaultValue: 150,
		Kind:         reflect.Int,
	}
	RssPageSize = Property{
		KeyValue:     "rss_page_size",
		DefaultValue: 20,
		Kind:         reflect.Int,
	}
	RssContentType = Property{
		KeyValue:     "rss_content_type",
		DefaultValue: "full",
		Kind:         reflect.String,
	}
	IndexPageSize = Property{
		KeyValue:     "post_index_page_size",
		DefaultValue: 10,
		Kind:         reflect.Int,
	}
	ArchivePageSize = Property{
		KeyValue:     "post_archives_page_size",
		DefaultValue: 10,
		Kind:         reflect.Int,
	}
	IndexSort = Property{
		KeyValue:     "post_index_sort",
		DefaultValue: "createTime",
		Kind:         reflect.String,
	}
	RecycledPostCleaningEnabled = Property{
		KeyValue:     "recycled_post_cleaning_enabled",
		DefaultValue: false,
		Kind:         reflect.Bool,
	}
	RecycledPostRetentionTime = Property{
		KeyValue:     "recycled_post_retention_time",
		DefaultValue: 30,
		Kind:         reflect.Int,
	}
	RecycledPostRetentionTimeunit = Property{
		KeyValue:     "recycled_post_retention_timeunit",
		DefaultValue: "DAY",
		Kind:         reflect.String,
	}
)
View Source
var (
	IsInstalled = Property{
		KeyValue:     "is_installed",
		DefaultValue: false,
		Kind:         reflect.Bool,
	}
	Theme = Property{
		KeyValue:     "theme",
		DefaultValue: consts.DefaultThemeID,
		Kind:         reflect.String,
	}
	BirthDay = Property{
		KeyValue:     "birthday",
		DefaultValue: int(0),
		Kind:         reflect.Int,
	}
	DefaultMenuTeam = Property{
		KeyValue:     "default_menu_team",
		DefaultValue: "",
		Kind:         reflect.String,
	}
)
View Source
var AliOssAccessKey = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_access_key",
	Kind:         reflect.String,
}
View Source
var AliOssAccessSecret = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_access_secret",
	Kind:         reflect.String,
}
View Source
var AliOssBucketName = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_bucket_name",
	Kind:         reflect.String,
}
View Source
var AliOssDomain = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_domain",
	Kind:         reflect.String,
}
View Source
var AliOssEndpoint = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_endpoint",
	Kind:         reflect.String,
}
View Source
var AliOssProtocol = Property{
	DefaultValue: "https://",
	KeyValue:     "oss_ali_domain_protocol",
	Kind:         reflect.String,
}
View Source
var AliOssSource = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_source",
	Kind:         reflect.String,
}
View Source
var AliOssStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_style_rule",
	Kind:         reflect.String,
}
View Source
var AliOssThumbnailStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_ali_thumbnail_style_rule",
	Kind:         reflect.String,
}
View Source
var AllProperty = []Property{}/* 108 elements not displayed */
View Source
var AttachmentType = Property{
	KeyValue:     "attachment_type",
	DefaultValue: consts.AttachmentTypeLocal.String(),
	Kind:         reflect.String,
}
View Source
var HuaweiOssAccessKey = Property{
	DefaultValue: "",
	KeyValue:     "oss_huawei_access_key",
	Kind:         reflect.String,
}
View Source
var HuaweiOssAccessSecret = Property{
	DefaultValue: "",
	KeyValue:     "oss_huawei_access_secret",
	Kind:         reflect.String,
}
View Source
var HuaweiOssBucketName = Property{
	DefaultValue: "",
	KeyValue:     "oss_huawei_bucket_name",
	Kind:         reflect.String,
}
View Source
var HuaweiOssDomain = Property{
	DefaultValue: "",
	KeyValue:     "oss_huawei_domain",
	Kind:         reflect.String,
}
View Source
var HuaweiOssEndpoint = Property{
	DefaultValue: "",
	KeyValue:     "oss_huawei_endpoint",
	Kind:         reflect.String,
}
View Source
var MinioAccessKey = Property{
	DefaultValue: "",
	KeyValue:     "minio_access_key",
	Kind:         reflect.String,
}
View Source
var MinioAccessSecret = Property{
	DefaultValue: "",
	KeyValue:     "minio_access_secret",
	Kind:         reflect.String,
}
View Source
var MinioBucketName = Property{
	DefaultValue: "",
	KeyValue:     "minio_bucket_name",
	Kind:         reflect.String,
}
View Source
var MinioEndpoint = Property{
	DefaultValue: "",
	KeyValue:     "minio_endpoint",
	Kind:         reflect.String,
}
View Source
var MinioRegion = Property{
	DefaultValue: "",
	KeyValue:     "minio_region",
	Kind:         reflect.String,
}
View Source
var MinioSource = Property{
	DefaultValue: "",
	KeyValue:     "minio_source",
	Kind:         reflect.String,
}
View Source
var QiniuDomainProtocol = Property{
	DefaultValue: "https://",
	KeyValue:     "oss_qiniu_domain_protocol",
	Kind:         reflect.String,
}
View Source
var QiniuOssAccessKey = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_access_key",
	Kind:         reflect.String,
}
View Source
var QiniuOssAccessSecret = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_access_secret",
	Kind:         reflect.String,
}
View Source
var QiniuOssBucket = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_bucket",
	Kind:         reflect.String,
}
View Source
var QiniuOssDomain = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_domain",
	Kind:         reflect.String,
}
View Source
var QiniuOssStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_style_rule",
	Kind:         reflect.String,
}
View Source
var QiniuOssThumbnailStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_thumbnail_style_rule",
	Kind:         reflect.String,
}
View Source
var QiniuOssZone = Property{
	DefaultValue: "",
	KeyValue:     "oss_qiniu_zone",
	Kind:         reflect.String,
}
View Source
var SeoDescription = Property{
	KeyValue:     "seo_description",
	DefaultValue: "",
	Kind:         reflect.String,
}
View Source
var SeoKeywords = Property{
	KeyValue:     "seo_keywords",
	DefaultValue: "",
	Kind:         reflect.String,
}
View Source
var SeoSpiderDisabled = Property{
	KeyValue:     "seo_spider_disabled",
	DefaultValue: false,
	Kind:         reflect.Bool,
}
View Source
var TencentCosBucketName = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_bucket_name",
	Kind:         reflect.String,
}
View Source
var TencentCosDomain = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_domain",
	Kind:         reflect.String,
}
View Source
var TencentCosProtocol = Property{
	DefaultValue: "https://",
	KeyValue:     "cos_tencent_protocol",
	Kind:         reflect.String,
}
View Source
var TencentCosRegion = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_region",
	Kind:         reflect.String,
}
View Source
var TencentCosSecretID = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_secret_id",
	Kind:         reflect.String,
}
View Source
var TencentCosSecretKey = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_secret_key",
	Kind:         reflect.String,
}
View Source
var TencentCosSource = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_source",
	Kind:         reflect.String,
}
View Source
var TencentCosStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_style_rule",
	Kind:         reflect.String,
}
View Source
var TencentCosThumbnailStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "cos_tencent_thumbnail_style_rule",
	Kind:         reflect.String,
}
View Source
var UpOssBucket = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_name",
	Kind:         reflect.String,
}
View Source
var UpOssDomain = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_domain",
	Kind:         reflect.String,
}
View Source
var UpOssOperator = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_operator",
	Kind:         reflect.String,
}
View Source
var UpOssPassword = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_password",
	Kind:         reflect.String,
}
View Source
var UpOssProtocol = Property{
	DefaultValue: "http://",
	KeyValue:     "oss_upyun_protocol",
	Kind:         reflect.String,
}
View Source
var UpOssSource = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_source",
	Kind:         reflect.String,
}
View Source
var UpOssStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_style_rule",
	Kind:         reflect.String,
}
View Source
var UpOssThumbnailStyleRule = Property{
	DefaultValue: "",
	KeyValue:     "oss_upyun_thumbnail_style_rule",
	Kind:         reflect.String,
}
View Source
var UploadImagePreviewEnable = Property{
	KeyValue:     "attachment_upload_image_preview_enable",
	DefaultValue: true,
	Kind:         reflect.Bool,
}
View Source
var UploadMaxFiles = Property{
	KeyValue:     "attachment_upload_max_files",
	DefaultValue: 50,
	Kind:         reflect.Int,
}
View Source
var UploadMaxParallelUploads = Property{
	KeyValue:     "attachment_upload_max_parallel_uploads",
	DefaultValue: 3,
	Kind:         reflect.Int,
}

Functions

This section is empty.

Types

type Property

type Property struct {
	DefaultValue interface{}
	KeyValue     string
	Kind         reflect.Kind
}

func (Property) ConvertToOption

func (p Property) ConvertToOption() *entity.Option

Jump to

Keyboard shortcuts

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