Skip to content

Commit

Permalink
server: Mention data reader life time in Backend documentation
Browse files Browse the repository at this point in the history
See #172.
  • Loading branch information
foxcpp committed Jan 19, 2022
1 parent 1c322d2 commit f9aa4f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ type Session interface {
// Add recipient for currently processed message.
Rcpt(to string) error
// Set currently processed message contents and send it.
//
// r must be consumed before Data returns.
Data(r io.Reader) error
}

Expand Down

0 comments on commit f9aa4f4

Please sign in to comment.