New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitlab.com/insanitywholesale/bookdir

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab.com/insanitywholesale/bookdir

  • v0.0.0-20220701233155-f016e462db74
  • Source
  • Go
  • Socket score

Version published
Created
Source

bookdir

directory of books, used to illustrate useful gRPC-related development

explanation

the api is written as a proto file and exposed over grpc and also exposed as a rest api through grpc-gateway

way to quick test

go test

run go test -v and see if it passes

json

get

run go run main.go and do curl http://localhost:8080/api/v1/books to see it in action

post

run go run main.go and use curl -H "Content-Type: application/json" -X POST --data-binary '@testdata/testbook.json' http://localhost:8080/api/v1/book to add a book

configuration

VariableDescriptionDefault Value
BOOKDIR_GRPC_PORTgrpc port of the service11000
BOOKDIR_REST_PORTrest port of the service8080
PG_URLpostgres database URLempty
REDIS_URLredis database URLempty

FAQs

Package last updated on 01 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc