Skip to content

Commit

Permalink
Move repository from sergeyfast/zenrpc to semrush/zenrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfast committed Sep 11, 2017
1 parent 37e8744 commit 4cb8504
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zenrpc: JSON-RPC 2.0 Server Implementation with SMD support [WIP]

[![goreport](https://goreportcard.com/badge/github.com/sergeyfast/zenrpc)](https://goreportcard.com/report/github.com/sergeyfast/zenrpc) [![Build Status](https://travis-ci.org/sergeyfast/zenrpc.svg?branch=master)](https://travis-ci.org/sergeyfast/zenrpc)
[![goreport](https://goreportcard.com/badge/github.com/semrush/zenrpc)](https://goreportcard.com/report/github.com/semrush/zenrpc) [![Build Status](https://travis-ci.org/semrush/zenrpc.svg?branch=master)](https://travis-ci.org/semrush/zenrpc)

`zenrpc` is a JSON-RPC 2.0 server library with Service Mapping Description support.
It's built on top of `go generate` instead of reflection.
Expand All @@ -9,8 +9,8 @@ It's built on top of `go generate` instead of reflection.

```Service is struct with RPC methods, service represents RPC namespace.```

1. Install zenrpc generator `go get github.com/sergeyfast/zenrpc/zenrpc`
1. Import `github.com/sergeyfast/zenrpc` into our code with rpc service.
1. Install zenrpc generator `go get github.com/semrush/zenrpc/zenrpc`
1. Import `github.com/semrush/zenrpc` into our code with rpc service.
1. Add trailing comment `//zenrpc` to your service or embed `zenrpc.Service` into your service struct.
1. Write your funcs almost as usual.
1. Do not forget run `go generate` or `zenrpc` for magic
Expand Down Expand Up @@ -38,8 +38,8 @@ import (
"net/http"
"os"

"github.com/sergeyfast/zenrpc"
"github.com/sergeyfast/zenrpc/testdata"
"github.com/semrush/zenrpc"
"github.com/semrush/zenrpc/testdata"
)

type ArithService struct{ zenrpc.Service }
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync"
"unicode"

"github.com/sergeyfast/zenrpc/smd"
"github.com/semrush/zenrpc/smd"
)

type contextKey string
Expand Down
4 changes: 2 additions & 2 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"testing"

"github.com/sergeyfast/zenrpc"
"github.com/sergeyfast/zenrpc/testdata"
"github.com/semrush/zenrpc"
"github.com/semrush/zenrpc/testdata"
)

// ArithService description goes here.
Expand Down
2 changes: 1 addition & 1 deletion testdata/arith.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package testdata
import (
"context"
"errors"
"github.com/sergeyfast/zenrpc"
"github.com/semrush/zenrpc"
"math"
)

Expand Down
4 changes: 2 additions & 2 deletions testdata/arithsrv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"flag"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sergeyfast/zenrpc"
"github.com/sergeyfast/zenrpc/testdata"
"github.com/semrush/zenrpc"
"github.com/semrush/zenrpc/testdata"
"log"
"net/http"
"os"
Expand Down
2 changes: 1 addition & 1 deletion testdata/phonebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"errors"
"github.com/sergeyfast/zenrpc"
"github.com/semrush/zenrpc"
"sync"
)

Expand Down
4 changes: 2 additions & 2 deletions testdata/testdata_zenrpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions zenrpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package main
import (
"bytes"
"fmt"
"github.com/sergeyfast/zenrpc/parser"
"github.com/semrush/zenrpc/parser"
"go/format"
"os"
"path/filepath"
"time"
)

const (
openIssueURL = "https://github.com/sergeyfast/zenrpc/issues/new"
githubURL = "https://github.com/sergeyfast/zenrpc"
openIssueURL = "https://github.com/semrush/zenrpc/issues/new"
githubURL = "https://github.com/semrush/zenrpc"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions zenrpc/template.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cb8504

Please sign in to comment.