Go to file
2016-12-05 17:53:15 +01:00
cmd Added dot slash to the import statements in commonjs mode 2016-12-05 17:53:15 +01:00
config Added dot slash to the import statements in commonjs mode 2016-12-05 17:53:15 +01:00
demo map support, better custom scalar support, optional scalars 2016-09-16 18:13:11 +02:00
prometheus removed debug 2016-11-18 17:17:02 +01:00
.gitignore some initial thoughts 2016-05-12 17:31:54 +02:00
build.go Added dot slash to the import statements in commonjs mode 2016-12-05 17:53:15 +01:00
code.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
go.go implemented configurable endpoint on the server side and exposed them via NewDefault... 2016-12-03 09:49:08 +01:00
gotsrpc.go added initial instrumentation support 2016-10-31 09:26:20 +01:00
Makefile added a little Makefile 2016-07-22 15:55:33 +02:00
model.go fixed an issue with resolving scalar types in structs and sorting service methods in order to avoid unnessary file changes 2016-10-18 17:19:58 +02:00
reader_test.go reading ahead 2016-05-13 15:56:40 +02:00
README.md some initial thoughts 2016-05-12 17:31:54 +02:00
servicereader.go refactored gotsrpc.yaml => services in a target are a map now => we have default endpoints 2016-12-02 18:28:50 +01:00
stats.go added initial instrumentation support 2016-10-31 09:26:20 +01:00
test.js nearing 0.1 with build file 2016-07-22 15:48:52 +02:00
test.ts nearing 0.1 with build file 2016-07-22 15:48:52 +02:00
typereader.go minor cleanup 2016-10-27 18:42:51 +02:00
typescript_test.go added support for constants, fixed support for map and array types 2016-09-12 12:16:38 +02:00
typescript.go commonjs first alpha 2016-12-05 17:19:37 +01:00

Go TypeScript RPC

Where to define this ?!

gotsrpc -ts-target path/to/local/whatever.ts -ts-module My.Module.Foo my/package/path ServiceStructA [ServiceStructB ...]
gotsrpc build gotsrpc.yml
---
# gotsrpc.yml
targets:
  -
    package: my/package/path
    expose:
      - ServiceStructA
      - ServiceStructB
    ts:
        module: My.Module.Foo
        target: path/to/local/whatever.ts