summaryrefslogtreecommitdiff
path: root/boruta.go
diff options
context:
space:
mode:
Diffstat (limited to 'boruta.go')
-rw-r--r--boruta.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/boruta.go b/boruta.go
index 438aa36..19bfee8 100644
--- a/boruta.go
+++ b/boruta.go
@@ -27,6 +27,7 @@ package boruta
import (
"crypto/rsa"
"net"
+ "strconv"
"time"
)
@@ -78,9 +79,21 @@ func (caps Capabilities) GetWorkerUUID() WorkerUUID {
// ReqID refers to the Request created by the User.
type ReqID uint64
+// String returns string representation of ReqID. This is implementation of
+// fmt.Stringer interface.
+func (id ReqID) String() string {
+ return strconv.FormatUint(uint64(id), 10)
+}
+
// Priority is the importance of the Request. Lower - more important.
type Priority uint8
+// String returns string representation of Priority. This is implementation of
+// fmt.Stringer interface.
+func (p Priority) String() string {
+ return strconv.FormatUint(uint64(p), 10)
+}
+
const (
// HiPrio - most important priority (minimum value).
HiPrio Priority = 1