Skip to content

Commit

Permalink
GH-75: Renamed jirenius to resgateio for resgate and resclient refere…
Browse files Browse the repository at this point in the history
…nces.
  • Loading branch information
jirenius committed May 13, 2019
1 parent a1a67e9 commit 77a310b
Show file tree
Hide file tree
Showing 40 changed files with 98 additions and 98 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<p align="center">
<a href="http://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License"></a>
<a href="http://goreportcard.com/report/jirenius/resgate"><img src="http://goreportcard.com/badge/github.com/jirenius/resgate" alt="Report Card"></a>
<a href="https://travis-ci.org/jirenius/resgate"><img src="https://travis-ci.org/jirenius/resgate.svg?branch=master" alt="Build Status"></a>
<a href="https://coveralls.io/github/jirenius/resgate?branch=master"><img src="https://coveralls.io/repos/github/jirenius/resgate/badge.svg?branch=master" alt="Coverage"></a>
<a href="http://goreportcard.com/report/resgateio/resgate"><img src="http://goreportcard.com/badge/github.com/resgateio/resgate" alt="Report Card"></a>
<a href="https://travis-ci.org/resgateio/resgate"><img src="https://travis-ci.org/resgateio/resgate.svg?branch=master" alt="Build Status"></a>
<a href="https://coveralls.io/github/resgateio/resgate?branch=master"><img src="https://coveralls.io/repos/github/resgateio/resgate/badge.svg?branch=master" alt="Coverage"></a>
</p>

<p align="center">Visit <a href="https://resgate.io">Resgate.io</a> for <a href="https://resgate.io/docs/get-started/introduction/">guides</a>, <a href="https://resgate.io/demo/">live demos</a>, and <a href="https://resgate.io/docs/get-started/resources/">resources</a>.</p>
Expand Down Expand Up @@ -37,7 +37,7 @@ Whenever there is a change to the data, the responsible micro-service sends an e
### Download
The recommended way to install *Resgate* and *NATS Server* is to download one of the pre-built binaries:
* [Download](https://nats.io/download/nats-io/gnatsd/) and run NATS Server
* [Download](https://github.com/jirenius/resgate/releases/latest) and run Resgate
* [Download](https://github.com/resgateio/resgate/releases/latest) and run Resgate

### Building

Expand All @@ -52,7 +52,7 @@ go get github.com/nats-io/gnatsd
gnatsd
```
```bash
go get github.com/jirenius/resgate
go get github.com/resgateio/resgate
resgate
```

Expand All @@ -79,7 +79,7 @@ For more in depth information on the protocol:

* [RES protocol](docs/res-protocol.md) - Introduction and general terminology
* [RES-Service protocol](docs/res-service-protocol.md) - How to write services
* [RES-Client protocol](docs/res-client-protocol.md) - How to write client libraries, if [ResClient](https://github.com/jirenius/resclient) doesn't fit your needs
* [RES-Client protocol](docs/res-client-protocol.md) - How to write client libraries, if [ResClient](https://github.com/resgateio/resclient) doesn't fit your needs

## Usage
```
Expand Down Expand Up @@ -180,6 +180,6 @@ If you'd like help out, please consider:

Any feedback on the protocol and its implementation is highly appreciated!

If you find any issues with the protocol or the gateway, feel free to [report them](https://github.com/jirenius/resgate/issues/new).
If you find any issues with the protocol or the gateway, feel free to [report them](https://github.com/resgateio/resgate/issues/new).

If you have created a service library, a client library, or some other tool or utility, please contact me to have it added to [the list of resources](https://resgate.io/docs/get-started/resources/).
2 changes: 1 addition & 1 deletion examples/book-collection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is an example, written in javascript (node.js), of a RES service with colle

## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Running the example
Expand Down
2 changes: 1 addition & 1 deletion examples/client-session/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The client consists of a single file:

## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Install and run
Expand Down
2 changes: 1 addition & 1 deletion examples/edit-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is an example written in Javascript (Node.js) of a simple text field that c

## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Install and run
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a Hello World example written in javascript (Node.js).

## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Install and run
Expand Down
2 changes: 1 addition & 1 deletion examples/jwt-authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resgate --headauth auth.jwtHeader
```
## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) (with the *headauth* flag) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) (with the *headauth* flag) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Install and run
Expand Down
2 changes: 1 addition & 1 deletion examples/password-authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This example, written in Javascript (Node.js), shows how authentication can be d

## Prerequisite

* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/jirenius/resgate) running
* Have [NATS Server](https://nats.io/download/nats-io/gnatsd/) and [Resgate](https://github.com/resgateio/resgate) running
* Have [node.js](https://nodejs.org/en/download/) installed

## Install and run
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"syscall"
"time"

"github.com/jirenius/resgate/logger"
"github.com/jirenius/resgate/nats"
"github.com/jirenius/resgate/server"
"github.com/resgateio/resgate/logger"
"github.com/resgateio/resgate/nats"
"github.com/resgateio/resgate/server"
)

var stopTimeout = 10 * time.Second
Expand Down
4 changes: 2 additions & 2 deletions nats/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"
"time"

"github.com/jirenius/resgate/logger"
"github.com/jirenius/resgate/server/mq"
"github.com/resgateio/resgate/logger"
"github.com/resgateio/resgate/server/mq"
"github.com/jirenius/timerqueue"
nats "github.com/nats-io/go-nats"
)
Expand Down
6 changes: 3 additions & 3 deletions server/apiEncoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/url"
"strings"

"github.com/jirenius/resgate/server/codec"
"github.com/jirenius/resgate/server/rescache"
"github.com/jirenius/resgate/server/reserr"
"github.com/resgateio/resgate/server/codec"
"github.com/resgateio/resgate/server/rescache"
"github.com/resgateio/resgate/server/reserr"
)

var nullBytes = []byte("null")
Expand Down
4 changes: 2 additions & 2 deletions server/apiHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"strings"

"github.com/jirenius/resgate/server/codec"
"github.com/jirenius/resgate/server/reserr"
"github.com/resgateio/resgate/server/codec"
"github.com/resgateio/resgate/server/reserr"
)

func (s *Service) initAPIHandler() error {
Expand Down
30 changes: 15 additions & 15 deletions server/codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"net/http"

"github.com/jirenius/resgate/server/reserr"
"github.com/resgateio/resgate/server/reserr"
)

var (
Expand All @@ -21,7 +21,7 @@ const (
)

// Request represents a RES-service request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#requests
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#requests
type Request struct {
Params interface{} `json:"params,omitempty"`
Token interface{} `json:"token,omitempty"`
Expand All @@ -30,14 +30,14 @@ type Request struct {
}

// Response represents a RES-service response
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#response
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#response
type Response struct {
Result json.RawMessage `json:"result"`
Error *reserr.Error `json:"error"`
}

// AccessResponse represents the response of a RES-service access request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#access-request
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#access-request
type AccessResponse struct {
Result *AccessResult `json:"result"`
Error *reserr.Error `json:"error"`
Expand All @@ -50,7 +50,7 @@ type AccessResult struct {
}

// GetRequest represents a RES-service get request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#get-request
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#get-request
type GetRequest struct {
Query string `json:"query,omitempty"`
}
Expand All @@ -69,7 +69,7 @@ type GetResult struct {
}

// AuthRequest represents a RES-service auth request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#auth-request
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#auth-request
type AuthRequest struct {
Request
Header http.Header `json:"header,omitempty"`
Expand All @@ -79,7 +79,7 @@ type AuthRequest struct {
}

// NewResponse represents the response of a RES-service new call request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#new-call-request
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#new-call-request
type NewResponse struct {
Result *NewResult `json:"result"`
Error *reserr.Error `json:"error"`
Expand All @@ -96,13 +96,13 @@ type QueryEvent struct {
}

// EventQueryRequest represents a RES-service query request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#query-request
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#query-request
type EventQueryRequest struct {
Query string `json:"query"`
}

// EventQueryResponse represent the response of a RES-service query request
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#query-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#query-event
type EventQueryResponse struct {
Result *EventQueryResult `json:"result"`
Error *reserr.Error `json:"error"`
Expand All @@ -121,32 +121,32 @@ type EventQueryEvent struct {
}

// ConnTokenEvent represents a RES-server connection token event
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#connection-token-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#connection-token-event
type ConnTokenEvent struct {
Token json.RawMessage `json:"token"`
}

// ChangeEvent represent a RES-server model change event
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#model-change-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#model-change-event
type ChangeEvent struct {
Values map[string]Value `json:"values"`
}

// AddEvent represent a RES-server collection add event
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#collection-add-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#collection-add-event
type AddEvent struct {
Idx int `json:"idx"`
Value Value `json:"value"`
}

// RemoveEvent represent a RES-server collection remove event
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#collection-remove-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#collection-remove-event
type RemoveEvent struct {
Idx int `json:"idx"`
}

// SystemReset represents a RES-server system reset event
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#system-reset-event
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#system-reset-event
type SystemReset struct {
Resources []string `json:"resources"`
Access []string `json:"access"`
Expand Down Expand Up @@ -178,7 +178,7 @@ const (
)

// Value represents a RES value
// https://github.com/jirenius/resgate/blob/master/docs/res-protocol.md#values
// https://github.com/resgateio/resgate/blob/master/docs/res-protocol.md#values
type Value struct {
json.RawMessage
Type ValueType
Expand Down
2 changes: 1 addition & 1 deletion server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"strings"

"github.com/jirenius/resgate/server/codec"
"github.com/resgateio/resgate/server/codec"
)

// Config holds server configuration
Expand Down
2 changes: 1 addition & 1 deletion server/mq/mq.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package mq

import "github.com/jirenius/resgate/server/reserr"
import "github.com/resgateio/resgate/server/reserr"

// Response sends a response to the messaging system
type Response func(subj string, payload []byte, err error)
Expand Down
2 changes: 1 addition & 1 deletion server/mqClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"errors"

"github.com/jirenius/resgate/server/rescache"
"github.com/resgateio/resgate/server/rescache"
)

const mqWorkers = 10
Expand Down
4 changes: 2 additions & 2 deletions server/rescache/access.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package rescache

import (
"github.com/jirenius/resgate/server/codec"
"github.com/jirenius/resgate/server/reserr"
"github.com/resgateio/resgate/server/codec"
"github.com/resgateio/resgate/server/reserr"
)

// Access represents a RES-service access response
Expand Down
2 changes: 1 addition & 1 deletion server/rescache/deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *Cache) deprecated(rid string, typ featureType) {
var msg string
switch typ {
case deprecatedModelChangeEvent:
msg = "model change event v1.0 detected\n Legacy support will be removed after 2020-03-31. For more information:\n https://github.com/jirenius/resgate/blob/master/docs/res-protocol-v1.1-update.md"
msg = "model change event v1.0 detected\n Legacy support will be removed after 2020-03-31. For more information:\n https://github.com/resgateio/resgate/blob/master/docs/res-protocol-v1.1-update.md"
default:
c.Logf("Invalid deprecation feature type: %d", typ)
return
Expand Down
4 changes: 2 additions & 2 deletions server/rescache/eventSubscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rescache
import (
"sync"

"github.com/jirenius/resgate/server/codec"
"github.com/jirenius/resgate/server/mq"
"github.com/resgateio/resgate/server/codec"
"github.com/resgateio/resgate/server/mq"
)

// ResourceType is an enum representing a resource type
Expand Down
8 changes: 4 additions & 4 deletions server/rescache/rescache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"sync"
"time"

"github.com/jirenius/resgate/logger"
"github.com/jirenius/resgate/server/codec"
"github.com/jirenius/resgate/server/mq"
"github.com/jirenius/resgate/server/reserr"
"github.com/resgateio/resgate/logger"
"github.com/resgateio/resgate/server/codec"
"github.com/resgateio/resgate/server/mq"
"github.com/resgateio/resgate/server/reserr"
"github.com/jirenius/timerqueue"
)

Expand Down
6 changes: 3 additions & 3 deletions server/rescache/resourceSubscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"

"github.com/jirenius/resgate/server/codec"
"github.com/resgateio/resgate/server/codec"
)

type subscriptionState byte
Expand All @@ -20,7 +20,7 @@ const (
var errQueryResourceOnNonQueryRequest = errors.New("query resource on non-query request")

// Model represents a RES model
// https://github.com/jirenius/resgate/blob/master/docs/res-protocol.md#models
// https://github.com/resgateio/resgate/blob/master/docs/res-protocol.md#models
type Model struct {
Values map[string]codec.Value
data []byte
Expand All @@ -39,7 +39,7 @@ func (m *Model) MarshalJSON() ([]byte, error) {
}

// Collection represents a RES collection
// https://github.com/jirenius/resgate/blob/master/docs/res-protocol.md#collections
// https://github.com/resgateio/resgate/blob/master/docs/res-protocol.md#collections
type Collection struct {
Values []codec.Value
data []byte
Expand Down
4 changes: 2 additions & 2 deletions server/reserr/reserr.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const (
)

// Pre-defined RES errors
// https://github.com/jirenius/resgate/blob/master/docs/res-service-protocol.md#pre-defined-errors
// https://github.com/jirenius/resgate/blob/master/docs/res-client-protocol.md#pre-defined-errors
// https://github.com/resgateio/resgate/blob/master/docs/res-service-protocol.md#pre-defined-errors
// https://github.com/resgateio/resgate/blob/master/docs/res-client-protocol.md#pre-defined-errors
var (
ErrAccessDenied = &Error{Code: CodeAccessDenied, Message: "Access denied"}
ErrDisposing = &Error{Code: CodeInternalError, Message: "Internal error: disposing connection"}
Expand Down
Loading

0 comments on commit 77a310b

Please sign in to comment.