@@ -15,15 +15,15 @@ type ServiceContext interface {
1515type WorkflowContext interface {
1616 context.Context
1717 AppConfig () AppConfig
18- Service (service string ) ( RemoteService , error )
19- Controller (controller string ) ( RemoteController , error )
18+ Service (service string ) * RemoteServiceBuilder
19+ Controller (controller string ) RemoteController
2020}
2121
2222type ApiContext interface {
2323 context.Context
2424 AppConfig () AppConfig
25- Service (service string ) ( RemoteService , error )
26- Controller (controller string ) ( RemoteController , error )
25+ Service (service string ) * RemoteServiceBuilder
26+ Controller (controller string ) RemoteController
2727}
2828
2929type RawContext interface {
@@ -72,12 +72,14 @@ func (s ContextImpl) FileStore() FileStore {
7272 return s .fileStore
7373}
7474
75- func (s ContextImpl ) Service (service string ) (RemoteService , error ) {
76- return RemoteService {ctx : s .ctx , sessionId : s .sessionId , service : service , serviceClient : s .serviceClient }, nil
75+ func (s ContextImpl ) Service (service string ) * RemoteServiceBuilder {
76+ return & RemoteServiceBuilder {
77+ ctx : s .ctx , sessionId : s .sessionId , service : service , serviceClient : s .serviceClient ,
78+ }
7779}
7880
79- func (s ContextImpl ) Controller (controller string ) ( RemoteController , error ) {
80- return RemoteController {ctx : s .ctx , sessionId : s .sessionId , controller : controller , serviceClient : s .serviceClient }, nil
81+ func (s ContextImpl ) Controller (controller string ) RemoteController {
82+ return RemoteController {ctx : s .ctx , sessionId : s .sessionId , controller : controller , serviceClient : s .serviceClient }
8183}
8284
8385func (s ContextImpl ) ServiceExec (req ExecServiceExtendedRequest ) (ExecServiceResponse , error ) {
0 commit comments