Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to README, instructions for adding as a dependency and using … #100

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,17 @@ $ sc create ld-relay DisplayName="LaunchDarkly Relay Proxy" start="auto" binPath


## Integrating the Relay Proxy into your own application

You will have to import this package as a dependency.
```
go get gopkg.in/launchdarkly/ld-relay.v5
```
You can also use the Relay Proxy to handle endpoints in your own application if you don't want to use the default `ld-relay` application. Below is an
example using [Gorilla](https://github.com/gorilla/mux) of how you might instantiate a relay inside your web server beneath a path called "/relay":

```go
import (
relay "gopkg.in/launchdarkly/ld-relay.v5"
)
router := mux.NewRouter()
configFileName := "path/to/my-config-file"
cfg := relay.DefaultConfig
Expand Down