Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/tharindu-wj/golang-rest-couchdb
* gorilla/mux : `go get -u github.com/gorilla/mux`
* couchbase/gocb : `go get gopkg.in/couchbase/gocb.v1`
* Need to create two buckets in couchbase `company` and `geo`
Project consist with 3 binary files for each service. These files located in '/bin' folder. Before run those add
couchbase credentials in auth.json
* `companyService` : Run server on `localhost:3000` listen for company services
* `geoService` : Run server on `localhost:3001` listen for geo services
* `restuarantImporter` : Import resturants data to couchDB. This needs valid json file with restuarants.
Example json can be found in `/resources/retuarants.json`
* Run Krakend with `/resources/krakend.json`. Before run this `company` and `geo` services should be executed and
open their ports
Sample postman collection can be found in `/resources/Go REST Couchbase.postman_collection.json`
GET
: get company by idGET
:get companies by multiple id's. ex:-["12345678","14723698"]
GET
: get list of geo locations by certain range. ex:-lon=-86.79113&lat=32.806671&radius=1500
GET
: get company details near to given geo range.
* All services source codes in `/src` folder
* Common package helper functions and models are in `shared` folder
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.