16 lines
221 B
Go
16 lines
221 B
Go
|
package connector
|
||
|
|
||
|
func NewAPI(s *Service) *API {
|
||
|
return &API{
|
||
|
s: s,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
type API struct {
|
||
|
s *Service
|
||
|
}
|
||
|
|
||
|
func (api *API) CallRPC(inputJSON string) (string, error) {
|
||
|
return api.s.rpcClient.CallRaw(inputJSON), nil
|
||
|
}
|