Documentation
¶
Index ¶
Constants ¶
View Source
const PttArticleTemplate = `` /* 314-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleArguments ¶ added in v0.10.0
type ArticleArguments struct { UserData bbs.UserRecord Article bbs.ArticleRecord BoardID string Content string PostANSICDate string }
Ptt default article template
type Config ¶
type Config struct { BBSHome string ListenPort int16 AccessTokenPrivateKey string AccessTokenPublicKey string AccessTokenExpiresAt time.Duration MailDriver string }
func NewConfig ¶
NewConfig load and return global config from config files, it will load defaultPath first, then userPath. if defaultPath can not be read, it will return error. it userPath can not be read, it will ignore userPath. user configuration will override default configuration.
func NewDefaultConfig ¶
Click to show internal directories.
Click to hide internal directories.