constant

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultPageSize            = 20 // Default number of pages
	UserStatusChangedCacheKey  = "answer:user:status:"
	UserStatusChangedCacheTime = 7 * 24 * time.Hour
	UserTokenCacheKey          = "answer:user:token:"
	UserTokenCacheTime         = 7 * 24 * time.Hour
	AdminTokenCacheKey         = "answer:admin:token:"
	AdminTokenCacheTime        = 7 * 24 * time.Hour
	AcceptLanguageFlag         = "Accept-Language"
)
View Source
const (
	QuestionObjectType   = "question"
	AnswerObjectType     = "answer"
	TagObjectType        = "tag"
	UserObjectType       = "user"
	CollectionObjectType = "collection"
	CommentObjectType    = "comment"
	ReportObjectType     = "report"
)
View Source
const (
	SiteTypeGeneral   = "general"
	SiteTypeInterface = "interface"
	SiteTypeBranding  = "branding"
	SiteTypeWrite     = "write"
	SiteTypeLegal     = "legal"
)
View Source
const (
	// UpdateQuestion update question
	UpdateQuestion = "notification.action.update_question"
	// AnswerTheQuestion answer the question
	AnswerTheQuestion = "notification.action.answer_the_question"
	// UpdateAnswer update answer
	UpdateAnswer = "notification.action.update_answer"
	// AdoptAnswer adopt answer
	AdoptAnswer = "notification.action.adopt_answer"
	// CommentQuestion comment question
	CommentQuestion = "notification.action.comment_question"
	// CommentAnswer comment answer
	CommentAnswer = "notification.action.comment_answer"
	// ReplyToYou reply to you
	ReplyToYou = "notification.action.reply_to_you"
	// MentionYou mention you
	MentionYou = "notification.action.mention_you"
	// YourQuestionIsClosed your question is closed
	YourQuestionIsClosed = "notification.action.your_question_is_closed"
	// YourQuestionWasDeleted your question was deleted
	YourQuestionWasDeleted = "notification.action.your_question_was_deleted"
	// YourAnswerWasDeleted your answer was deleted
	YourAnswerWasDeleted = "notification.action.your_answer_was_deleted"
	// YourCommentWasDeleted your comment was deleted
	YourCommentWasDeleted = "notification.action.your_comment_was_deleted"
)
View Source
const (
	ReportSpamName             = "report.spam.name"
	ReportSpamDescription      = "report.spam.description"
	ReportRudeName             = "report.rude.name"
	ReportRudeDescription      = "report.rude.description"
	ReportDuplicateName        = "report.duplicate.name"
	ReportDuplicateDescription = "report.duplicate.description"
	ReportOtherName            = "report.other.name"
	ReportOtherDescription     = "report.other.description"
	ReportNotAnswerName        = "report.not_answer.name"
	ReportNotAnswerDescription = "report.not_answer.description"
	ReportNotNeedName          = "report.not_need.name"
	ReportNotNeedDescription   = "report.not_need.description"
	// question close
	QuestionCloseDuplicateName        = "question.close.duplicate.name"
	QuestionCloseDuplicateDescription = "question.close.duplicate.description"
	QuestionCloseGuidelineName        = "question.close.guideline.name"
	QuestionCloseGuidelineDescription = "question.close.guideline.description"
	QuestionCloseMultipleName         = "question.close.multiple.name"
	QuestionCloseMultipleDescription  = "question.close.multiple.description"
	QuestionCloseOtherName            = "question.close.other.name"
	QuestionCloseOtherDescription     = "question.close.other.description"
)
View Source
const (
	// TODO put this in database
	// TODO need reason controller to resolve
	QuestionCloseJSON  = `` /* 649-byte string literal not displayed */
	QuestionReportJSON = `` /* 567-byte string literal not displayed */
	AnswerReportJSON   = `` /* 558-byte string literal not displayed */
	CommentReportJSON  = `` /* 561-byte string literal not displayed */
)

Variables

ObjectTypeStrMapping key => value object TagID AnswerList key equal database's table name

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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