Skip to content

An example gRPC server written in Go that consumes and prints the Network Survey Messages

Notifications You must be signed in to change notification settings

christianrowlands/ns-messaging-go-grpc-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Survey Messaging Go gRPC Server

This simple go application represents an example of a gRPC server that can be used to receive messages from the Network Survey Android app. The functionality of this server does not exist other than as a test server for testing the Network Survey Android app, or as an example of how to leverage the .proto files from the Network Survey Messaging Library to create a gRPC server written in Go.

Prerequisites

  1. Install Go

  2. Download Dependencies Before working with this application, you need to download all the dependencies. To accomplish this use the command:

go get craxiom.com/ns-messaging-go-grpc-server

Running the gRPC server

The application can be compiled and run using the following command

go run .

Network Survey Connection

Use the "Server Connection" in the Network Survey Android App to connect to the gRPC server. The server address should be the IP address of the machine running the gRPC server, and the port should be 2621.

Updating the generated go code from the gRPC server

I generated the go code in the messaging directory by running the commands found in the NS Messaging Repo

From there, I copied the output into the messaging directory of this project.

Contact

About

An example gRPC server written in Go that consumes and prints the Network Survey Messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages