Skip to content

Commit

Permalink
update files for release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kenriortega committed Jul 6, 2021
1 parent 05fd2af commit 6f9c74a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
project_path: "./cmd/"
binary_name: "goproxy"
ldflags: "-s -w"
extra_files: LICENSE Readme.md
extra_files: LICENSE README.md
21 changes: 21 additions & 0 deletions cmd/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Egosystem

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
42 changes: 42 additions & 0 deletions cmd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# GOproxy
PoC for learning how work proxy and load balancer like nginx server


## GOproxy command

> Build
```bash
make build
```

> Start Proxy server first time
`genkey` command in true generate random secretkey storaged on badgerdb on `badger.data`

```bash
./goproxy -portProxy 5000 -genkey true
```

> Start Proxy server
```bash
./goproxy -portProxy 5001
```

> Start load balancer
```bash
./goproxy -type lb --backends "http://localhost:5000,http://localhost:5001,http://localhost:5002"
```

> Start API PoC service
```bash
go run services/micro-a/api.go --port <port>
```

Install badger db on window if you don`t use CGO
```bash
CGO_ENABLED=0 go get github.com/dgraph-io/badger/v3
```

0 comments on commit 6f9c74a

Please sign in to comment.