Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Перейти к файлу
Ian Molee f610ad57bb Update go-bindata-generated template.go 2016-12-07 17:08:42 -08:00
_example
cmd Update usage method; run goimports 2016-12-07 17:08:36 -08:00
deftree
gendoc
gengokit Update go-bindata-generated template.go 2016-12-07 17:08:42 -08:00
svcdef
truss
vendor
.gitignore
.travis.yml
DEVELOPING.md
Dockerfile
LICENSE.md
Makefile Merge branch 'master' of github.com:TuneLab/go-truss into add_version_tag 2016-12-06 17:08:43 -08:00
README.md Merge pull request #111 from tuneliza/userdocs 2016-12-06 22:52:09 -08:00
TUTORIAL.md minor corrective edit 2016-12-06 15:54:35 -08:00
USAGE.md finish getting-started tutorial (no middlewares, need more) 2016-12-06 15:49:07 -08:00

README.md

Truss Build Status

Truss handles the painful parts of services, freeing you to focus on the business logic.

Please note that Truss is currently pre-release software, and may change drastically with no notice. There is no versioning, no guarantees, no stability at this time. However, if you want to play around, make suggestions, or submit changes, we welcome issues and pull requests!

Everything all the time forever

Install

Currently, there is no binary distribution of Truss, you must install from source.

To install this software, you must:

  1. Install protoc 3 or newer. The easiest way is to download a release from github and add to $PATH. Otherwise install from source.

  2. Install the proto and protoc-gen-go packages. (protoc-gen-go must be in $PATH)

    go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
    
  3. Install HTTP Annotations

    go get -u google.golang.org/genproto
    
  4. Install Truss with

    go get -u github.com/TuneLab/go-truss/...
    

Usage

Using Truss is easy. You define your service with gRPC and protoc buffers, and Truss uses that definition to create an entire service. You can even add http annotations for HTTP 1.1/JSON transport!

Then you open the handlers/server/server_handler.go, add you business logic, and you're good to go.

Here is an example service definition: Echo Service

Try Truss for yourself on Echo Service to see the service that is generated:

truss _example/echo.proto

See USAGE.md and TUTORIAL.md for more details.

Developing

See DEVELOPING.md for details.