(repo migration) migrate from TuneLab -> tuneinc

This commit is contained in:
Zaq? Wiedmann 2018-04-21 21:52:14 -07:00
Родитель f2ecb2cef7
Коммит d7fc7dab88
60 изменённых файлов: 153 добавлений и 156 удалений

Просмотреть файл

@ -8,7 +8,7 @@ go:
- 1.10.x
- 1.9.x
go_import_path: github.com/TuneLab/truss
go_import_path: github.com/tuneinc/truss
before_install:
# protobuf

Просмотреть файл

@ -14,19 +14,19 @@ Whenever templates are modified, the templates must be recompiled to binary,
this is done with:
```
$ go generate github.com/TuneLab/truss/...
$ go generate github.com/tuneinc/truss/...
```
Then to build truss and its protoc plugin to your $GOPATH/bin directory:
```
$ go install github.com/TuneLab/truss/...
$ go install github.com/tuneinc/truss/...
```
Both can be done from the Makefile in the root directory:
```
$ cd $GOPATH/github.com/TuneLab/truss
$ cd $GOPATH/github.com/tuneinc/truss
$ make
```
@ -36,7 +36,7 @@ Before submitting a pull request always run tests that cover modified code.
Also build truss and run truss's integration test. This can be done by
```
$ cd $GOPATH/src/github.com/TuneLab/truss
$ cd $GOPATH/src/github.com/tuneinc/truss
$ make
$ make test
# If the tests failed and you want to remove generated code

Просмотреть файл

@ -13,9 +13,9 @@ RUN apk update && apk upgrade && apk add --no-cache protobuf git
RUN go version && go get -u -v github.com/golang/protobuf/protoc-gen-go
COPY ./ $GOPATH/src/github.com/TuneLab/truss
COPY ./ $GOPATH/src/github.com/tuneinc/truss
RUN go install -v github.com/TuneLab/truss/...
RUN go install -v github.com/tuneinc/truss/...
WORKDIR /go/src/protos

Просмотреть файл

@ -20,12 +20,12 @@ update-dependencies:
# Generate go files containing the all template files in []byte form
gobindata:
go generate github.com/TuneLab/truss/gengokit/template
go generate github.com/tuneinc/truss/gengokit/template
# Install truss and protoc-gen-truss-protocast
truss: gobindata
go install github.com/TuneLab/truss/cmd/protoc-gen-truss-protocast
go install -ldflags '-X "main.Version=$(SHA)" -X "main.VersionDate=$(VERSION_DATE)"' github.com/TuneLab/truss/cmd/truss
go install github.com/tuneinc/truss/cmd/protoc-gen-truss-protocast
go install -ldflags '-X "main.Version=$(SHA)" -X "main.VersionDate=$(VERSION_DATE)"' github.com/tuneinc/truss/cmd/truss
# Run the go tests and the truss integration tests
test: test-go test-integration

Просмотреть файл

@ -1,7 +1,4 @@
# Truss [![Build Status](https://travis-ci.org/TuneLab/truss.svg?branch=master)](https://travis-ci.org/TuneLab/truss)
**Migration Notice: This repo will be moving to [github.com/tuneinc/truss](https://github.com/tuneinc) on 2018/04/15
Services built with truss may need to update their imports in their service.proto and re-run with a post-migration version of truss**
# Truss [![Build Status](https://travis-ci.org/tuneinc/truss.svg?branch=master)](https://travis-ci.org/tuneinc/truss)
Truss handles the painful parts of services, freeing you to focus on the
business logic.
@ -27,15 +24,15 @@ Otherwise [install from source.](https://github.com/google/protobuf)
1. Install Truss with
```
go get -u -d github.com/TuneLab/truss
cd $GOPATH/src/github.com/TuneLab/truss
go get -u -d github.com/tuneinc/truss
cd $GOPATH/src/github.com/tuneinc/truss
make dependencies
make
```
On Windows, do the following instead:
```
go get -u -d github.com/TuneLab/truss
cd %GOPATH%/src/github.com/TuneLab/truss
go get -u -d github.com/tuneinc/truss
cd %GOPATH%/src/github.com/tuneinc/truss
wininstall.bat
```

Просмотреть файл

@ -10,7 +10,7 @@ We will build a simple service based on [echo.proto](./_example/echo.proto)
If everything passes youre good to go.
If you see any complaints about packages not installed, `go get` those packages
If you encounter any other issues - ask the developers
3. To update to newer version of truss, do `git pull`, or `go get -u github.com/TuneLab/truss/...` truss again.
3. To update to newer version of truss, do `git pull`, or `go get -u github.com/tuneinc/truss/...` truss again.
# Writing your first service
@ -36,7 +36,7 @@ message LouderRequest {
The RPC calls can be annotated with HTTP transport option (endpoint name and type of request). For this we must import the google annotations library.
```
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service Echo {
...

Просмотреть файл

@ -21,10 +21,10 @@ all: test
test: clean test-transport test-middlewares test-cli
truss:
go install -ldflags '-X "main.Version=$(SHA)" -X "main.VersionDate=$(VERSION_DATE)"' github.com/TuneLab/truss/cmd/truss
go install -ldflags '-X "main.Version=$(SHA)" -X "main.VersionDate=$(VERSION_DATE)"' github.com/tuneinc/truss/cmd/truss
protoc-gen-truss-protocast:
go build -o protoc-gen-truss-protocast github.com/TuneLab/truss/cmd/protoc-gen-truss-protocast
go build -o protoc-gen-truss-protocast github.com/tuneinc/truss/cmd/protoc-gen-truss-protocast
test-transport: protoc-gen-truss-protocast truss
@which truss

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package basic;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetBasic (BasicTypeRequest) returns (BasicTypeResponse) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package multifile;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
import "imported.proto";

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package multifile;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
message BasicTypeRequest {
double A = 1;

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package Repeated;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetRepeated (RepeatedTypeRequest) returns (RepeatedTypeResponse) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package nested;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetNested (NestedTypeRequest) returns (NestedTypeResponse) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package map;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetMap (MapTypeRequest) returns (MapTypeResponse) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package additional_bindings;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetAdditional (BasicTypeRequest) returns (BasicTypeResponse) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package custom_http_verb;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TEST {
rpc GetAdditional (BasicTypeRequest) returns (BasicTypeResponse) {

Просмотреть файл

@ -12,7 +12,7 @@ all: test
test:
@echo -e '$(TRUSS_MSG)'
mkdir -p middlewarestest-service
truss --svcout github.com/TuneLab/truss/cmd/_integration-tests/middlewares/middlewarestest-service proto/middlewares-test.proto
truss --svcout github.com/tuneinc/truss/cmd/_integration-tests/middlewares/middlewarestest-service proto/middlewares-test.proto
cp -r handlers middlewarestest-service
@echo -e '$(TEST_RUNNING_MSG)'
go test -v

Просмотреть файл

@ -3,7 +3,7 @@ package handlers
import (
"context"
pb "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/proto"
pb "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/proto"
)
// NewService returns a naïve, stateless implementation of Service.

Просмотреть файл

@ -4,8 +4,8 @@ import (
"context"
"github.com/go-kit/kit/endpoint"
svc "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/middlewarestest-service/svc"
pb "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/proto"
svc "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/middlewarestest-service/svc"
pb "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/proto"
)
// WrapEndpoints accepts the service's entire collection of endpoints, so that a

Просмотреть файл

@ -6,7 +6,7 @@ import (
"context"
pb "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/proto"
pb "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/proto"
)
func TestAlwaysWrapped(t *testing.T) {

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package middlewares;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service MiddlewaresTest {
// Test endpoints.WrapAllExcept(middleware, exclude ...)

Просмотреть файл

@ -4,9 +4,9 @@ import (
"os"
"testing"
"github.com/TuneLab/truss/cmd/_integration-tests/middlewares/middlewarestest-service/handlers"
svc "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/middlewarestest-service/svc"
pb "github.com/TuneLab/truss/cmd/_integration-tests/middlewares/proto"
"github.com/tuneinc/truss/cmd/_integration-tests/middlewares/middlewarestest-service/handlers"
svc "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/middlewarestest-service/svc"
pb "github.com/tuneinc/truss/cmd/_integration-tests/middlewares/proto"
)
var middlewareEndpoints svc.Endpoints

Просмотреть файл

@ -21,7 +21,7 @@ all: test
setup:
@echo -e '$(TRUSS_MSG)'
mkdir -p transportpermutations-service
truss -v --svcout github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
truss -v --svcout github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
cp -r handlers transportpermutations-service
test: setup
@ -29,7 +29,7 @@ test: setup
go test -run=$(match) -v
@echo -e '$(TRUSS_AGAIN_MSG)'
mkdir -p transportpermutations-service
truss -v --svcout github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
truss -v --svcout github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
@echo -e '$(TEST_RUNNING_MSG)'
go test -run=$(match) -v
$(MAKE) clean
@ -43,9 +43,9 @@ bench: setup
# handlers/handlers.go
newrpc:
mkdir -p transportpermutations-service
truss --svcout github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
truss --svcout github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
cp -r handlers transportpermutations-service
truss --svcout github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
truss --svcout github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service proto/transport-test.proto
cp -r transportpermutations-service/handlers/handlers.go handlers
clean:

Просмотреть файл

@ -8,8 +8,8 @@ import (
"context"
"google.golang.org/grpc"
pb "github.com/TuneLab/truss/cmd/_integration-tests/transport/proto"
grpcclient "github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/grpc"
pb "github.com/tuneinc/truss/cmd/_integration-tests/transport/proto"
grpcclient "github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/grpc"
)
var grpcAddr string

Просмотреть файл

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"net/http"
pb "github.com/TuneLab/truss/cmd/_integration-tests/transport/proto"
pb "github.com/tuneinc/truss/cmd/_integration-tests/transport/proto"
)
// NewService returns a naïve, stateless implementation of Service.

Просмотреть файл

@ -16,11 +16,11 @@ import (
// 3d Party
"context"
pb "github.com/TuneLab/truss/cmd/_integration-tests/transport/proto"
httpclient "github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/http"
pb "github.com/tuneinc/truss/cmd/_integration-tests/transport/proto"
httpclient "github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/http"
"github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/handlers"
"github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/svc"
"github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/handlers"
"github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/svc"
httptransport "github.com/go-kit/kit/transport/http"
)

Просмотреть файл

@ -14,8 +14,8 @@ import (
// 3d Party
"context"
// This Service
pb "github.com/TuneLab/truss/cmd/_integration-tests/transport/proto"
httpclient "github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/http"
pb "github.com/tuneinc/truss/cmd/_integration-tests/transport/proto"
httpclient "github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/svc/client/http"
"github.com/pkg/errors"
)

Просмотреть файл

@ -2,7 +2,7 @@ syntax = "proto3";
package transport;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service TransportPermutations {
rpc GetWithQuery (GetWithQueryRequest) returns (GetWithQueryResponse) {

Просмотреть файл

@ -11,9 +11,9 @@ import (
"google.golang.org/grpc"
pb "github.com/TuneLab/truss/cmd/_integration-tests/transport/proto"
handler "github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/handlers"
svc "github.com/TuneLab/truss/cmd/_integration-tests/transport/transportpermutations-service/svc"
pb "github.com/tuneinc/truss/cmd/_integration-tests/transport/proto"
handler "github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/handlers"
svc "github.com/tuneinc/truss/cmd/_integration-tests/transport/transportpermutations-service/svc"
)
func TestMain(m *testing.M) {

Просмотреть файл

@ -15,16 +15,16 @@ import (
"github.com/pkg/errors"
flag "github.com/spf13/pflag"
"github.com/TuneLab/truss/truss"
"github.com/TuneLab/truss/truss/execprotoc"
"github.com/TuneLab/truss/truss/getstarted"
"github.com/TuneLab/truss/truss/parsesvcname"
"github.com/tuneinc/truss/truss"
"github.com/tuneinc/truss/truss/execprotoc"
"github.com/tuneinc/truss/truss/getstarted"
"github.com/tuneinc/truss/truss/parsesvcname"
"github.com/TuneLab/truss/deftree"
"github.com/TuneLab/truss/gendoc"
ggkconf "github.com/TuneLab/truss/gengokit"
gengokit "github.com/TuneLab/truss/gengokit/generator"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/deftree"
"github.com/tuneinc/truss/gendoc"
ggkconf "github.com/tuneinc/truss/gengokit"
gengokit "github.com/tuneinc/truss/gengokit/generator"
"github.com/tuneinc/truss/svcdef"
)
var (
@ -546,7 +546,7 @@ Do you want to automatically run 'make' and rerun command:
return false
}
const trussImportPath = "github.com/TuneLab/truss"
const trussImportPath = "github.com/tuneinc/truss"
// makeAndRunTruss installs truss by running make in trussImportPath.
// It then passes through args to newly installed truss.

Просмотреть файл

@ -10,7 +10,7 @@ func TestCommentedEnum(t *testing.T) {
defStr := `
syntax = "proto3";
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
enum FooBarBaz {
// This is my comment, this is my note
@ -60,7 +60,7 @@ func TestCommentedImport(t *testing.T) {
package general;
// This comment should not cause any problems
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// This comment should not cause any problems
message SumRequest {

Просмотреть файл

@ -18,8 +18,8 @@ import (
plugin "github.com/golang/protobuf/protoc-gen-go/plugin"
"github.com/pkg/errors"
"github.com/TuneLab/truss/deftree/svcparse"
"github.com/TuneLab/truss/truss/execprotoc"
"github.com/tuneinc/truss/deftree/svcparse"
"github.com/tuneinc/truss/truss/execprotoc"
)
var gengo *generator.Generator

Просмотреть файл

@ -9,7 +9,7 @@ import (
// This has to be imported because it modifies the state of `proto` by
// registering the `google.api.http` extension, allowing us to specify it
// in the sources below.
_ "github.com/TuneLab/truss/deftree/googlethirdparty"
_ "github.com/tuneinc/truss/deftree/googlethirdparty"
"github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
@ -28,7 +28,7 @@ func TestNewFromString(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {

4
deftree/googlethirdparty/annotations.proto поставляемый
Просмотреть файл

@ -18,8 +18,8 @@ syntax = "proto3";
package google.api;
import "github.com/TuneLab/truss/deftree/googlethirdparty/http.proto"; // from google/api/http.proto // modified
import "github.com/TuneLab/truss/deftree/googlethirdparty/descriptor.proto"; // from google/protobuf/descriptor.proto // modified
import "github.com/tuneinc/truss/deftree/googlethirdparty/http.proto"; // from google/api/http.proto // modified
import "github.com/tuneinc/truss/deftree/googlethirdparty/descriptor.proto"; // from google/protobuf/descriptor.proto // modified
option java_multiple_files = true;
option java_outer_classname = "AnnotationsProto";

Просмотреть файл

@ -6,7 +6,7 @@ import (
"io"
"strings"
"github.com/TuneLab/truss/deftree"
"github.com/tuneinc/truss/deftree"
)
func findServiceName(md *deftree.MicroserviceDefinition) string {

Просмотреть файл

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/TuneLab/truss/deftree"
"github.com/tuneinc/truss/deftree"
)
// prindent is a utility function for creating a formatted string with a given

Просмотреть файл

@ -14,7 +14,7 @@ import (
gogen "github.com/golang/protobuf/protoc-gen-go/generator"
"github.com/pkg/errors"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/svcdef"
)
// A collection of the necessary information for generating basic business

Просмотреть файл

@ -8,8 +8,8 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/svcdef"
)
var (
@ -31,7 +31,7 @@ func TestNewClientServiceArgs(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
message SumRequest {
repeated int64 a = 1;

Просмотреть файл

@ -11,11 +11,11 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit"
"github.com/TuneLab/truss/gengokit/handlers"
templFiles "github.com/TuneLab/truss/gengokit/template"
"github.com/tuneinc/truss/gengokit"
"github.com/tuneinc/truss/gengokit/handlers"
templFiles "github.com/tuneinc/truss/gengokit/template"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/svcdef"
)
// GenerateGokit returns a gokit service generated from a service definition (svcdef),

Просмотреть файл

@ -11,11 +11,11 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/TuneLab/truss/gengokit"
templateFileAssets "github.com/TuneLab/truss/gengokit/template"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit"
templateFileAssets "github.com/tuneinc/truss/gengokit/template"
"github.com/tuneinc/truss/svcdef"
"github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/gengokit/gentesthelper"
)
var gopath []string
@ -49,7 +49,7 @@ func TestApplyTemplateFromPath(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -78,8 +78,8 @@ func TestApplyTemplateFromPath(t *testing.T) {
}
conf := gengokit.Config{
GoPackage: "github.com/TuneLab/truss",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
te, err := gengokit.NewData(sd, conf)
@ -132,8 +132,8 @@ func stringToTemplateExector(def, importPath string) (*gengokit.Data, error) {
}
func TestAllTemplates(t *testing.T) {
const goPackage = "github.com/TuneLab/truss/gengokit"
const goPBPackage = "github.com/TuneLab/truss/gengokit/general-service"
const goPackage = "github.com/tuneinc/truss/gengokit"
const goPBPackage = "github.com/tuneinc/truss/gengokit/general-service"
const def = `
syntax = "proto3";
@ -141,7 +141,7 @@ func TestAllTemplates(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -171,7 +171,7 @@ func TestAllTemplates(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -213,8 +213,8 @@ func TestAllTemplates(t *testing.T) {
}
conf := gengokit.Config{
GoPackage: "github.com/TuneLab/truss/gengokit",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss/gengokit",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
data1, err := gengokit.NewData(sd1, conf)

Просмотреть файл

@ -9,9 +9,9 @@ import (
generatego "github.com/golang/protobuf/protoc-gen-go/generator"
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit/clientarggen"
"github.com/TuneLab/truss/gengokit/httptransport"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit/clientarggen"
"github.com/tuneinc/truss/gengokit/httptransport"
"github.com/tuneinc/truss/svcdef"
)
type Renderable interface {

Просмотреть файл

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/svcdef"
)
var gopath []string
@ -21,7 +21,7 @@ func TestNewData(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -50,8 +50,8 @@ func TestNewData(t *testing.T) {
}
conf := Config{
GoPackage: "github.com/TuneLab/truss/gengokit/general-service",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss/gengokit/general-service",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
te, err := NewData(sd, conf)

Просмотреть файл

@ -14,9 +14,9 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit"
helper "github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit"
helper "github.com/tuneinc/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/svcdef"
)
var gopath []string
@ -38,7 +38,7 @@ func TestServerMethsTempl(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -98,7 +98,7 @@ func TestApplyServerTempl(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -122,8 +122,8 @@ func TestApplyServerTempl(t *testing.T) {
}
`
conf := gengokit.Config{
GoPackage: "github.com/TuneLab/truss/gengokit/general-service",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss/gengokit/general-service",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
sd, err := svcdef.NewFromString(def, gopath)
if err != nil {
@ -139,7 +139,7 @@ func TestApplyServerTempl(t *testing.T) {
import (
"context"
pb "github.com/TuneLab/truss/gengokit/general-service"
pb "github.com/tuneinc/truss/gengokit/general-service"
)
// NewService returns a naïve, stateless implementation of Service.
@ -190,7 +190,7 @@ func TestIsValidFunc(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -259,7 +259,7 @@ func TestPruneDecls(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -309,7 +309,7 @@ func TestPruneDecls(t *testing.T) {
import (
"context"
pb "github.com/TuneLab/truss/gengokit/general-service"
pb "github.com/tuneinc/truss/gengokit/general-service"
)
// NewService returns a naïve, stateless implementation of Service.
@ -386,7 +386,7 @@ func TestUpdateMethods(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -442,8 +442,8 @@ func TestUpdateMethods(t *testing.T) {
allMethods := svc.Methods
conf := gengokit.Config{
GoPackage: "github.com/TuneLab/truss/gengokit",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss/gengokit",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
te, err := gengokit.NewData(sd, conf)

Просмотреть файл

@ -14,9 +14,9 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit"
"github.com/TuneLab/truss/gengokit/handlers/templates"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit"
"github.com/tuneinc/truss/gengokit/handlers/templates"
"github.com/tuneinc/truss/svcdef"
)
// NewService is an exported func that creates a new service

Просмотреть файл

@ -4,8 +4,8 @@ import (
"io"
"strings"
"github.com/TuneLab/truss/gengokit"
"github.com/TuneLab/truss/gengokit/handlers/templates"
"github.com/tuneinc/truss/gengokit"
"github.com/tuneinc/truss/gengokit/handlers/templates"
)
const HookPath = "handlers/hooks.gotemplate"

Просмотреть файл

@ -5,8 +5,8 @@ import (
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit"
"github.com/TuneLab/truss/gengokit/handlers/templates"
"github.com/tuneinc/truss/gengokit"
"github.com/tuneinc/truss/gengokit/handlers/templates"
)
// MiddlewaresPath is the path to the middleware gotemplate file.

Просмотреть файл

@ -7,9 +7,9 @@ import (
"strings"
"testing"
"github.com/TuneLab/truss/gengokit"
thelper "github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit"
thelper "github.com/tuneinc/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/svcdef"
)
func init() {
@ -22,7 +22,7 @@ func TestRenderPrevEndpoints(t *testing.T) {
import (
"github.com/go-kit/kit/endpoint"
"github.com/TuneLab/truss/gengokit/general-service/svc"
"github.com/tuneinc/truss/gengokit/general-service/svc"
)
// WrapEndpoint will be called individually for all endpoints defined in
@ -93,7 +93,7 @@ func generalService() (*svcdef.Svcdef, *gengokit.Data, error) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
// RequestMessage is so foo
message RequestMessage {
@ -121,8 +121,8 @@ func generalService() (*svcdef.Svcdef, *gengokit.Data, error) {
return nil, nil, err
}
conf := gengokit.Config{
GoPackage: "github.com/TuneLab/truss/gengokit/general-service",
PBPackage: "github.com/TuneLab/truss/gengokit/general-service",
GoPackage: "github.com/tuneinc/truss/gengokit/general-service",
PBPackage: "github.com/tuneinc/truss/gengokit/general-service",
}
data, err := gengokit.NewData(sd, conf)

Просмотреть файл

@ -25,7 +25,7 @@ func WrapEndpoints(in svc.Endpoints) svc.Endpoints {
// These middlewares get passed the endpoints name as their first argument when applied.
// This can be used to write generic metric gathering middlewares that can
// report the endpoint name for free.
// github.com/TuneLab/truss/_example/middlewares/labeledmiddlewares.go for examples.
// github.com/tuneinc/truss/_example/middlewares/labeledmiddlewares.go for examples.
// in.WrapAllLabeledExcept(errorCounter(statsdCounter), "Status", "Ping")
// How to apply a middleware to a single endpoint.

Просмотреть файл

@ -15,8 +15,8 @@ import (
gogen "github.com/golang/protobuf/protoc-gen-go/generator"
"github.com/pkg/errors"
"github.com/TuneLab/truss/gengokit/httptransport/templates"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit/httptransport/templates"
"github.com/tuneinc/truss/svcdef"
)
// Helper is the base struct for the data structure containing all the

Просмотреть файл

@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/TuneLab/truss/svcdef"
"github.com/tuneinc/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/svcdef"
"github.com/davecgh/go-spew/spew"
)
@ -28,7 +28,7 @@ func TestNewMethod(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
message SumRequest {
int64 a = 1;

Просмотреть файл

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/gengokit/gentesthelper"
)
// Test that rendering certain templates will ouput the code we expect. The

Просмотреть файл

@ -11,7 +11,7 @@ import (
gogen "github.com/golang/protobuf/protoc-gen-go/generator"
"github.com/TuneLab/truss/deftree/svcparse"
"github.com/tuneinc/truss/deftree/svcparse"
)
type optional interface {

Просмотреть файл

@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/TuneLab/truss/deftree/svcparse"
"github.com/tuneinc/truss/deftree/svcparse"
)
func TestGetPathParams(t *testing.T) {
@ -56,7 +56,7 @@ type MapServer interface {
protoCode := `
syntax = "proto3";
package TEST;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
enum EnumType {
A = 0;

Просмотреть файл

@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"github.com/TuneLab/truss/truss/execprotoc"
"github.com/tuneinc/truss/truss/execprotoc"
"github.com/pkg/errors"
)

Просмотреть файл

@ -6,7 +6,7 @@ import (
"reflect"
"testing"
"github.com/TuneLab/truss/gengokit/gentesthelper"
"github.com/tuneinc/truss/gengokit/gentesthelper"
"github.com/davecgh/go-spew/spew"
)
@ -23,7 +23,7 @@ func basicFromString(t *testing.T) *Svcdef {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
message SumRequest {
int64 a = 1;
@ -164,7 +164,7 @@ func TestNoHTTPBinding(t *testing.T) {
// General package
package general;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
message SumRequest {
int64 a = 1;

Просмотреть файл

@ -27,7 +27,7 @@ package TEST
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/TuneLab/truss/pbinfo/scrap/third_party/googleapis/google/api"
import _ "github.com/tuneinc/truss/pbinfo/scrap/third_party/googleapis/google/api"
import (
context "golang.org/x/net/context"

Просмотреть файл

@ -3,7 +3,7 @@ syntax = "proto3";
package TEST;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service Map {
rpc GetMap (MapTypeRequest) returns (MapTypeResponse) {

Просмотреть файл

@ -5,7 +5,7 @@ syntax = "proto3";
package {{.PackageName}};
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service {{.ServiceName}} {
rpc Status(StatusRequest) returns (StatusResponse) {

Просмотреть файл

@ -10,8 +10,8 @@ import (
"path/filepath"
"strings"
"github.com/TuneLab/truss/svcdef"
"github.com/TuneLab/truss/truss/execprotoc"
"github.com/tuneinc/truss/svcdef"
"github.com/tuneinc/truss/truss/execprotoc"
"github.com/pkg/errors"
)

Просмотреть файл

@ -15,7 +15,7 @@ func TestFromPaths(t *testing.T) {
syntax = "proto3";
package echo;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service BounceEcho {
rpc Echo (EchoRequest) returns (EchoResponse) {
@ -61,7 +61,7 @@ func TestFromReader(t *testing.T) {
syntax = "proto3";
package echo;
import "github.com/TuneLab/truss/deftree/googlethirdparty/annotations.proto";
import "github.com/tuneinc/truss/deftree/googlethirdparty/annotations.proto";
service BounceEcho {
rpc Echo (EchoRequest) returns (EchoResponse) {

Просмотреть файл

@ -25,7 +25,7 @@ go get github.com/pauln/go-datefmt
go get github.com/golang/protobuf/protoc-gen-go
go get github.com/golang/protobuf/proto
go get github.com/jteeuwen/go-bindata/...
go generate github.com/TuneLab/truss/gengokit/template
go install github.com/TuneLab/truss/cmd/protoc-gen-truss-protocast
go install -ldflags "-X 'main.Version=%SHA%' -X 'main.VersionDate=%HEAD_DATE%'" github.com/TuneLab/truss/cmd/truss
go generate github.com/tuneinc/truss/gengokit/template
go install github.com/tuneinc/truss/cmd/protoc-gen-truss-protocast
go install -ldflags "-X 'main.Version=%SHA%' -X 'main.VersionDate=%HEAD_DATE%'" github.com/tuneinc/truss/cmd/truss
@ECHO OFF