You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/WalterPaes/go-grpc-crud

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/WalterPaes/go-grpc-crud

v0.0.0-20240323133806-8d43a3805444
Source
Go
Version published
Created
Source

Introduction

This repository contains an implementation of gRPC Server in Go. The service provides functionalities to manage products.

Installation

To install and run this service, follow these steps:

  • Ensure you have Go installed on your machine. If not, you can download it from here.
  • Clone this repository to your local machine.
    git clone https://github.com/WalterPaes/go-grpc-crud.git
    
  • Navigate to the project directory.
    cd go-grpc-crud
    
  • Run the following command to install the dependencies.
    go mod tidy
    
  • Finally, run the service.
    go run cmd/server/main.go
    

Features

  • Create Product: Allows the creation of a new product with name, category, description, and price.
  • Find Product by ID: Retrieves product details by its ID.

Usage

This service exposes gRPC endpoints for interacting with the product data. Below are the available endpoints:

Create Product

To create a new product, call the Create method with the necessary product details.

Find Product by ID

To retrieve product details by ID, call the FindById method with the product ID.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Package last updated on 23 Mar 2024

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