Skip to content

Commit 5af7c79

Browse files
jszwedkomichaelshobbs
authored andcommitted
Add comments to exported syslog types
1 parent 40badff commit 5af7c79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adapters/syslog/syslog.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ var (
2929
econnResetErrStr string
3030
)
3131

32+
// TCPFraming represents the type of framing to use for syslog messages
3233
type TCPFraming string
3334

3435
const (
35-
TraditionalTCPFraming TCPFraming = "traditional" // LF framing
36-
OctetCountedTCPFraming = "octet-counted" // https://tools.ietf.org/html/rfc6587#section-3.4.1
36+
// TraditionalTCPFraming is the traditional LF framing of syslog messages on the wire
37+
TraditionalTCPFraming TCPFraming = "traditional"
38+
// OctetCountedTCPFraming prepends the size of each message before the message. https://tools.ietf.org/html/rfc6587#section-3.4.1
39+
OctetCountedTCPFraming = "octet-counted"
3740
)
3841

3942
func init() {

0 commit comments

Comments
 (0)