Expose Agent (#892)

with server.Agent developers can access more transport-agnostic API to call the functions
This commit is contained in:
Denis Makogon
2018-05-07 21:10:23 +03:00
committed by Travis Reeder
parent aa2dbf80e9
commit 7ee47f13bb

View File

@@ -903,6 +903,10 @@ func (s *Server) Datastore() models.Datastore {
return s.datastore
}
func (s *Server) Agent() agent.Agent {
return s.agent
}
// returns the unescaped ?cursor and ?perPage values
// pageParams clamps 0 < ?perPage <= 100 and defaults to 30 if 0
// ignores parsing errors and falls back to defaults.