From 72e921ec1b9859bdf1caf8be60b7d60f358f24e0 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 4 Jan 2021 08:15:02 +0100 Subject: [PATCH] Define constants for sign and revoke actions --- datastructures/common.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/datastructures/common.go b/datastructures/common.go index e3ccb63..f9cbdd7 100644 --- a/datastructures/common.go +++ b/datastructures/common.go @@ -4,12 +4,20 @@ import "encoding/binary" type Action uint8 -const ActionNul = Action(0) +const ( + ActionNul = Action(0) + ActionSign = Action(1) + ActionRevoke = Action(2) +) func (a Action) String() string { switch a { case ActionNul: return "NUL" + case ActionSign: + return "SIGN" + case ActionRevoke: + return "REVOKE" default: return "unknown" }