MCPcopy
hub / github.com/dreadl0ck/netcap / getString

Method getString

types/bfd.go:105–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (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.
122func (b *BFD) JSON() (string, error) {

Callers 1

CSVRecordMethod · 0.45

Calls 2

formatInt32Function · 0.85
StringMethod · 0.45

Tested by

no test coverage detected