Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminData ¶
type AdminData struct { Title string `yaml:"title"` Link string `yaml:"link"` Date string `yaml:"date"` Author string `yaml:"author"` Content string `yaml:"content"` Email string `yaml:"email"` HomePage string `yaml:"home_page"` }
TODO prettify 内容。
type CommentNotifier ¶
type CommentNotifier struct { MailServer string Username string Password string Config *config.CommentConfig InstantNotifier notify.InstantNotifier Dialer func(addr string) (net.Conn, error) }
func (*CommentNotifier) Init ¶
func (cn *CommentNotifier) Init()
func (*CommentNotifier) NotifyAdmin ¶
func (cn *CommentNotifier) NotifyAdmin(data *AdminData)
func (*CommentNotifier) NotifyGuests ¶
func (cn *CommentNotifier) NotifyGuests(data *GuestData, names []string, recipients []string)
Click to show internal directories.
Click to hide internal directories.