aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-01Release share v0.3.0v0.3.0Shulhan
=== Features Changes * `lib/debug`: add function to write heap profile to file * `lib/debug`: add type to store relative and difference on memory heap * `lib/dns`: remove request pool * `lib/dns`: export the connection field on UDPClient * `lib/dns`: add type of connection * `lib/http`: add parameter http.ResponseWriter to Callback. * `lib/http`: the RegisterXxx functions now use the Endpoint type. === Enhancements * Various fixes suggested by linters * doc: add four summary and notes about DKIM * doc: add summary of Simple Authentication and Security Layer (SASL) * doc: add summary on SMTP over TLS (RFC3207) * doc: add notes for Internet Message Format (RFC 5322) * doc: add documentation for SMTP and DSN === Fixes * `lib/git`: fix testdata and test input
2019-02-01README: mention that package smtp is working in progressShulhan
The client is part is usable, but the server part is not fully developed.
2019-02-01lib/debug: add function to write heap profile to fileShulhan
WriteHeapProfile write memory profile into "/tmp/{prefix}.pid.heap.pprof". If keepAlive is true, the file will be keep opened until error happened, or caller send keepAlive=false, or when program end.
2019-01-31doc: add summary and notes about DKIMShulhan
Four RFCs related to DKIM summarized in this doc are, * DomainKeys Identified Mail Service Overview (RFC 5585) * Analysis of Threats Motivating DKIM (RFC 4686) * DKIM Development, Deployment, and Operations (RFC 5863) * DKIM Signatures (RFC 6379)
2019-01-29all: include generated HTMLsShulhan
The generated README on github page have some links that point to generated HTML files but the files is not found (404). Lets see if by including into repository, the links may works.
2019-01-29CHANGELOG: mentions all related changes for next releaseShulhan
2019-01-29lib/git: fix testdata and test inputShulhan
Somehow, the bare repository in testdata/beku_test is not detected as repository by git version 2.20.1.495.gaa96b0ce6b.
2019-01-29lib/smtp: remove unused parameter "arg" on handling HELP commandShulhan
2019-01-29lib/smtp: suppress gocyclo linter warning on handleCommandShulhan
The function body may bit too long, may be need to refactor in the future.
2019-01-29lib/smtp: suppress unhandled error from sendErrorShulhan
Since the statement after sendError will break and return from function, there is no need to check for error.
2019-01-29lib/smtp: remove unnecessary assignment on error variablesShulhan
The if condition inside loop will break and return nil eventually.
2019-01-29lib/smtp: suppress linter warning on sealing mail transactionShulhan
gosec linter assume that trace information that start with "FROM" is an SQL statement.
2019-01-29lib/smtp: simplify single switch-case and if-else conditionShulhan
2019-01-29lib/smtp: fix typo consistent receiver name on extension DSNShulhan
2019-01-29lib/smtp: suppress linter warning on default extensionsShulhan
2019-01-29lib/smtp: add string constant for "true" valueShulhan
2019-01-29lib/smtp: remove unused response from Ehlo return valueShulhan
2019-01-29lib/smtp: suppress gosec lint warning on Connect with insecure TLSShulhan
2019-01-29lib/smtp: fix error message with first-letter capital or end with newlineShulhan
2019-01-29lib/websocket: simplify Range on map of clientsShulhan
2019-01-29lib/websocket: uncapitalized the first letter of error messagesShulhan
2019-01-29lib/time: uncapitalized the first letter of error messageShulhan
2019-01-29lib/text: simplify if-else conditionShulhan
2019-01-29lib/tabula: uncapitalized the parameter name on GroupByValueShulhan
2019-01-29lib/strings: simplify if-else conditionShulhan
2019-01-29lib/runes: simplify if-else conditionShulhan
2019-01-29lib/net: uncapitalized first letter of error messageShulhan
2019-01-29lib/net: simplify if-else conditionShulhan
2019-01-29lib/mining: simplify if-else conditionShulhan
2019-01-29lib/mining: fix linter warnings on using capitalized parametersShulhan
2019-01-29lib/http: suppress linter warning on global variable on test fileShulhan
2019-01-29lib/http: simplified if-else conditionShulhan
2019-01-29lib/dns: uncapitalized the first letter of error messagesShulhan
2019-01-29lib/bytes: simplified if-else conditionShulhan
2019-01-29lib/dsv: fix stylecheck linter warningsShulhan
Most of the warnings are caused by old-habits of using "0 == var" style of checking variable value, others are if-else condition that can be joined.
2019-01-29lib/debug: add type to store relative and difference on memory heapShulhan
This type, MemHeap, is simplified value of runtime.MemStats. The MemHeap represent the growth of heap memory in bytes and in number of allocated objects.
2019-01-28lib/dns: remove request poolShulhan
Using request pooling just make the implementation a little bit complex. Implementator must know that request need to be release by using FreeRequest to minimize memory allocation.
2019-01-28lib/dns: update comment on ResourceRecord's RData methodShulhan
Add missing information about return value of type MR and SRV.
2019-01-28lib/dns: export the connection field on UDPClientShulhan
The connection field may be used by implementor to test, debug, or use the connection directly.
2019-01-28lib/dns: change the port number on testShulhan
The previous port number, 5353, is used by another program, which make the test run failed. The new port number is 5300.
2019-01-28lib/dns: add type of connectionShulhan
This is to limit implementation to assign value of connection type to known values only.
2019-01-15lib/smtp: add unit test for NewClientShulhan
2019-01-15lib/smtp: export the field ServerInfo in Client structShulhan
The non nil ServerInfo indicate that client has been called EHLO or HELO before, which required for client to check whether server support AUTH extension or not.
2019-01-15lib/smtp: add unit test for command without CRLFShulhan
2019-01-15lib/smtp: test client authentication with two handshakeShulhan
2019-01-15lib/smtp: add function Params to Extension interfaceShulhan
The Params will return the list of argument that supported by extension.
2019-01-15lib/smtp: implement SMTP service extension for Authentication (RFC 4954)Shulhan
The SMTP AUTH is implemented as a core command instead of as an extension.
2019-01-14doc: add summary note of Simple Authentication and Security Layer (SASL)Shulhan
The SASL documentation provide a quick understanding on how SASL works which provide illustration on how to implement the SASL mechanism on smtp library.
2019-01-08lib/smtp: refactor server handle name from "s" to "srv"Shulhan
2019-01-08doc: add summary on SMTP over TLS (RFC3207)Shulhan
Additional note on lib/smtp: the server favor implicit TLS over STARTTLS (RFC8314), which means if server's environment is configured with certificate, server will listen on port 465 only, not on port 25 and 465 and neither on port 465 and 587.