Documentation ¶
Overview ¶
Package api implements the replicant API handlers.
Index ¶
- func AddAllRoutes(prefix string, server *server.Server)
- func AddDebugRoutes(server *server.Server)
- func AddTransaction(srv *server.Server) (handle server.Handler)
- func CallbackRequest(srv *server.Server) (handle server.Handler)
- func GetResult(srv *server.Server) (handle server.Handler)
- func GetResults(srv *server.Server) (handle server.Handler)
- func GetTransaction(srv *server.Server) (handle server.Handler)
- func GetTransactions(srv *server.Server) (handle server.Handler)
- func RemoveTransaction(srv *server.Server) (handle server.Handler)
- func RunTransaction(srv *server.Server) (handle server.Handler)
- func RunTransactionByName(srv *server.Server) (handle server.Handler)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAllRoutes ¶
AddAllRoutes api routes to the given server with the given prefix. The prefix can be empty.
func AddDebugRoutes ¶
AddDebugRoutes add routes for serving runtime profiling data Add all handlers from net/http/pprof and all profiles from pprof.Profiles().
func AddTransaction ¶
AddTransaction to the replicant manager
func CallbackRequest ¶ added in v0.2.0
CallbackRequest services callback requests for transactions being run from executors
func GetResults ¶
GetResults of all managed replicant transactions
func GetTransaction ¶
GetTransaction fetches a named transaction definition from the replicant manager
func GetTransactions ¶
GetTransactions fetches all transaction definition from the replicant manager
func RemoveTransaction ¶
RemoveTransaction removes a named transaction from the replicant manager
func RunTransaction ¶
RunTransaction runs a unmanaged ad-hoc transaction