1
0
forked from rosa/hakurei

internal/uevent: nontrivial errors

These errors are best represented as JSON.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-28 00:07:56 +09:00
parent 8766fddcb3
commit 30f459e690

View File

@@ -9,8 +9,12 @@ import (
"hakurei.app/internal/netlink"
)
// Recoverable is satisfied by errors that are safe to recover from.
type Recoverable interface{ recoverable() }
type (
// Recoverable is satisfied by errors that are safe to recover from.
Recoverable interface{ recoverable() }
// Nontrivial is satisfied by errors preferring a JSON encoding.
Nontrivial interface{ nontrivial() }
)
// Conn represents a NETLINK_KOBJECT_UEVENT socket.
type Conn struct{ conn *netlink.Conn }