Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Feb 10, 2022
1 parent 2f4dade commit 13cec7e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# dgo [![GoDoc](https://godoc.org/github.com/dgraph-io/dgo?status.svg)](https://godoc.org/github.com/dgraph-io/dgo) [![Build Status](https://teamcity.dgraph.io/guestAuth/app/rest/builds/buildType:(id:dgo_integration)/statusIcon.svg)](https://teamcity.dgraph.io/viewLog.html?buildTypeId=dgo_integration&buildId=lastFinished&guest=1)
# dgo [![GoDoc](https://godoc.org/github.com/dgraph-io/dgo?status.svg)](https://godoc.org/github.com/dgraph-io/dgo)

Official Dgraph Go client which communicates with the server using [gRPC](https://grpc.io/).
Go client which communicates with the server using [gRPC](https://grpc.io/).

Before using this client, we highly recommend that you go through [tour.dgraph.io] and [docs.dgraph.io]
to understand how to run and work with Dgraph.

**Use [Discuss Issues](https://discuss.dgraph.io/c/issues/35/dgo/46) for reporting issues about this repository.**
**Use outcaste-io/issues to file issues.**

[docs.dgraph.io]:https://docs.dgraph.io
[tour.dgraph.io]:https://tour.dgraph.io
Expand Down Expand Up @@ -70,18 +67,18 @@ dgraphClient := dgo.NewDgraphClient(api.NewDgraphClient(conn))

### Login into a namespace

If your server has Access Control Lists enabled (Dgraph v1.1 or above), the client must be
If your server has Access Control Lists enabled (Dgraph v1.1 or above), the client must be
logged in for accessing data. Use `Login` endpoint:

Calling login will obtain and remember the access and refresh JWT tokens. All subsequent operations
Calling login will obtain and remember the access and refresh JWT tokens. All subsequent operations
via the logged in client will send along the stored access token.

```go
err := dgraphClient.Login(ctx, "user", "passwd")
// Check error
```

If your server additionally has namespaces (Dgraph v21.03 or above), use the
If your server additionally has namespaces (Dgraph v21.03 or above), use the
`LoginIntoNamespace` API.

```go
Expand Down

0 comments on commit 13cec7e

Please sign in to comment.