From cc726d35cde3cc28ad514f5791dbfb5ff1243300 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 9 Oct 2013 20:15:57 -0700 Subject: [PATCH] feat return the stateMachine --- server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.go b/server.go index d43662dc87..b9b00e697d 100644 --- a/server.go +++ b/server.go @@ -186,6 +186,11 @@ func (s *Server) Context() interface{} { return s.context } +// Retrieves the state machine passed into the constructor. +func (s *Server) StateMachine() StateMachine { + return s.stateMachine +} + // Retrieves the log path for the server. func (s *Server) LogPath() string { return path.Join(s.path, "log")