()
| 103 | } |
| 104 | |
| 105 | func (bah BFDAuthHeader) getString() string { |
| 106 | var b strings.Builder |
| 107 | |
| 108 | b.WriteString(StructureBegin) |
| 109 | b.WriteString(formatInt32(bah.AuthType)) |
| 110 | b.WriteString(FieldSeparator) |
| 111 | b.WriteString(formatInt32(bah.KeyID)) |
| 112 | b.WriteString(FieldSeparator) |
| 113 | b.WriteString(formatInt32(bah.SequenceNumber)) |
| 114 | b.WriteString(FieldSeparator) |
| 115 | b.WriteString(hex.EncodeToString(bah.Data)) |
| 116 | b.WriteString(StructureEnd) |
| 117 | |
| 118 | return b.String() |
| 119 | } |
| 120 | |
| 121 | // JSON returns the JSON representation of the audit record. |
| 122 | func (b *BFD) JSON() (string, error) { |
no test coverage detected