grpc-stack

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

GRPC Stack

Go Reference

Sandbox project for discovering GRPC

TODO

  • Use a separate container for the build
  • Optimize container size
  • Plug a GUI (Giu)

Usage

Help

go run . -h

Start server (default localhost:8080)

go run . serve [-i=hostname] [-p port]

Push int to the stack

go run . push -n 123

Pop int from the stack

go run . pop

Setup

  1. Install protoc from the package manager of your system.
dnf install -y protobuf-compiler
  1. Install protoc-gen-go.
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

Generate the go files from .proto files.

make protoc

Run tests

make test

Build the project (binary : build/stack)

make build

Create container

make container

Start container

make run

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL