Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectRecord = fmt.Errorf("received incorrect record")
Functions ¶
func KeyAsAttribute ¶
KeyAsAttribute 函数将 DHT 键格式化为适合跟踪的属性。 DHT 键可以是有效的 UTF-8 字符串,也可以是二进制数据,例如从 Multihash 导出的键。 跟踪(特别是 OpenTelemetry+grpc 导出器)要求字符串属性使用有效的 UTF-8 字符串。
Types ¶
type LoggableProviderRecordBytes ¶
type LoggableProviderRecordBytes []byte
func (LoggableProviderRecordBytes) String ¶
func (lk LoggableProviderRecordBytes) String() string
type LoggableRecordKeyBytes ¶
type LoggableRecordKeyBytes []byte
func (LoggableRecordKeyBytes) String ¶
func (lk LoggableRecordKeyBytes) String() string
type LoggableRecordKeyString ¶
type LoggableRecordKeyString string
func (LoggableRecordKeyString) String ¶
func (lk LoggableRecordKeyString) String() string
Click to show internal directories.
Click to hide internal directories.