mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-07 17:47:14 +00:00
docs: Add missing docstrings, adjust wording to match standard style
This patch adds a missing docstrings for exported identifiers, and adjust some of the existing ones to match the standard style. In some cases, the identifiers were un-exported after noticing they had no external users. Besides improving documentation, it also reduces the linter noise significantly.
This commit is contained in:
@@ -29,6 +29,8 @@ type Procmail struct {
|
||||
Timeout time.Duration // Timeout for each invocation.
|
||||
}
|
||||
|
||||
// Deliver an email. On failures, returns an error, and whether or not it is
|
||||
// permanent.
|
||||
func (p *Procmail) Deliver(from string, to string, data []byte) (error, bool) {
|
||||
tr := trace.New("Courier.Procmail", to)
|
||||
defer tr.Finish()
|
||||
|
||||
@@ -41,6 +41,8 @@ type SMTP struct {
|
||||
Dinfo *domaininfo.DB
|
||||
}
|
||||
|
||||
// Deliver an email. On failures, returns an error, and whether or not it is
|
||||
// permanent.
|
||||
func (s *SMTP) Deliver(from string, to string, data []byte) (error, bool) {
|
||||
a := &attempt{
|
||||
courier: s,
|
||||
|
||||
Reference in New Issue
Block a user