mirror of
https://github.com/ChronosX88/go-gun.git
synced 2024-11-23 10:52:19 +00:00
chore: Add go module, changed name of project
This commit is contained in:
parent
0096207ca4
commit
cca985bff7
14
README.md
14
README.md
@ -1,7 +1,7 @@
|
|||||||
# Esgopeta [![GoDoc](https://godoc.org/github.com/cretz/esgopeta/gun?status.svg)](https://godoc.org/github.com/cretz/esgopeta/gun)
|
# go-gun [![GoDoc](https://godoc.org/github.com/ChronosX88/go-gun/gun?status.svg)](https://godoc.org/github.com/ChronosX88/go-gun/gun)
|
||||||
|
|
||||||
Esgopeta is a Go implementation of the [Gun](https://github.com/amark/gun) distributed graph database. See the
|
go-gun is a Go implementation of the [Gun](https://github.com/amark/gun) distributed graph database. See the
|
||||||
[Godoc](https://godoc.org/github.com/cretz/esgopeta/gun) for API details.
|
[Godoc](https://godoc.org/github.com/ChronosX88/go-gun/gun) for API details.
|
||||||
|
|
||||||
**WARNING: This is an early proof-of-concept alpha version. Many pieces are not implemented or don't work.**
|
**WARNING: This is an early proof-of-concept alpha version. Many pieces are not implemented or don't work.**
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ Not yet implemented:
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
The package is `github.com/cretz/esgopeta/gun` which can be fetched via `go get`. To listen to database changes for a
|
The package is `github.com/ChronosX88/go-gun/gun` which can be fetched via `go get`. To listen to database changes for a
|
||||||
value, use `Fetch`. The example below listens for updates on a key for a minute:
|
value, use `Fetch`. The example below listens for updates on a key for a minute:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
@ -29,7 +29,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cretz/esgopeta/gun"
|
"github.com/ChronosX88/go-gun/gun"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -75,7 +75,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cretz/esgopeta/gun"
|
"github.com/ChronosX88/go-gun/gun"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -118,4 +118,4 @@ func main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
Note, these are just examples and you may want to control the lifetime of the channels better. See the
|
Note, these are just examples and you may want to control the lifetime of the channels better. See the
|
||||||
[Godoc](https://godoc.org/github.com/cretz/esgopeta/gun) for more information.
|
[Godoc](https://godoc.org/github.com/ChronosX88/go-gun/gun) for more information.
|
8
go.mod
Normal file
8
go.mod
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
module github.com/ChronosX88/go-gun
|
||||||
|
|
||||||
|
go 1.12
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/gorilla/websocket v1.4.1
|
||||||
|
github.com/stretchr/testify v1.4.0
|
||||||
|
)
|
13
go.sum
Normal file
13
go.sum
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
||||||
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM=
|
||||||
|
github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
|
||||||
|
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||||
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
@ -4,7 +4,7 @@ See https://gun.eco for more information on the Gun distributed graph database.
|
|||||||
|
|
||||||
For common use, create a Gun instance via New, use Scoped to arrive at the
|
For common use, create a Gun instance via New, use Scoped to arrive at the
|
||||||
desired field, then use Fetch to get/listen to values and/or Put to write
|
desired field, then use Fetch to get/listen to values and/or Put to write
|
||||||
values. A simple example is in the README at https://github.com/cretz/esgopeta.
|
values. A simple example is in the README at https://github.com/ChronosX88/go-gun.
|
||||||
|
|
||||||
WARNING: This is an early proof-of-concept alpha version. Many pieces are not
|
WARNING: This is an early proof-of-concept alpha version. Many pieces are not
|
||||||
implemented or don't work.
|
implemented or don't work.
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cretz/esgopeta/gun"
|
"github.com/ChronosX88/go-gun/gun"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/cretz/esgopeta/gun"
|
"github.com/ChronosX88/go-gun/gun"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGunGetSimple(t *testing.T) {
|
func TestGunGetSimple(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user