|
|
@@ -27,6 +27,7 @@ type Instance struct {
|
|
|
router syncRouter
|
|
|
ihm syncInboundHandlerManager
|
|
|
ohm syncOutboundHandlerManager
|
|
|
+ clock syncClock
|
|
|
|
|
|
features []Feature
|
|
|
id uuid.UUID
|
|
|
@@ -163,3 +164,8 @@ func (s *Instance) InboundHandlerManager() InboundHandlerManager {
|
|
|
func (s *Instance) OutboundHandlerManager() OutboundHandlerManager {
|
|
|
return &(s.ohm)
|
|
|
}
|
|
|
+
|
|
|
+// Clock returns the Clock used by this Instance. The returned Clock is always functional.
|
|
|
+func (s *Instance) Clock() Clock {
|
|
|
+ return &(s.clock)
|
|
|
+}
|