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:
@@ -9,8 +9,12 @@ import (
|
|||||||
"hakurei.app/internal/netlink"
|
"hakurei.app/internal/netlink"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Recoverable is satisfied by errors that are safe to recover from.
|
type (
|
||||||
type Recoverable interface{ recoverable() }
|
// 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.
|
// Conn represents a NETLINK_KOBJECT_UEVENT socket.
|
||||||
type Conn struct{ conn *netlink.Conn }
|
type Conn struct{ conn *netlink.Conn }
|
||||||
|
|||||||
Reference in New Issue
Block a user