mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Expose Agent (#892)
with server.Agent developers can access more transport-agnostic API to call the functions
This commit is contained in:
committed by
Travis Reeder
parent
aa2dbf80e9
commit
7ee47f13bb
@@ -903,6 +903,10 @@ func (s *Server) Datastore() models.Datastore {
|
|||||||
return s.datastore
|
return s.datastore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *Server) Agent() agent.Agent {
|
||||||
|
return s.agent
|
||||||
|
}
|
||||||
|
|
||||||
// returns the unescaped ?cursor and ?perPage values
|
// returns the unescaped ?cursor and ?perPage values
|
||||||
// pageParams clamps 0 < ?perPage <= 100 and defaults to 30 if 0
|
// pageParams clamps 0 < ?perPage <= 100 and defaults to 30 if 0
|
||||||
// ignores parsing errors and falls back to defaults.
|
// ignores parsing errors and falls back to defaults.
|
||||||
|
|||||||
Reference in New Issue
Block a user