comment_notify

package
v1.0.1-0...-3379034 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 9 Imported by: 0

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) Chanify

func (cn *CommentNotifier) Chanify(data *AdminData)

Chanify ...

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)

type GuestData

type GuestData struct {
	Title   string
	Link    string
	Date    string
	Author  string
	Content string
}

TODO prettify 内容。

Jump to

Keyboard shortcuts

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