package
0.4.5
Repository: https://github.com/russellluo/kun.git
Documentation: pkg.go.dev

# README

helloworldgrpc

This example illustrates how to expose helloworld as gRPC APIs.

Prerequisites

  • Protocol buffer compiler v3
  • Go plugins for the protocol compiler

See gRPC Go Quickstart for installation instructions.

Generate the code

$ go generate

Test the server

Run the server:

$ go run cmd/main.go
2021/07/04 18:18:00 server listening at [::]:8080

Consume by grpcurl:

$ grpcurl -plaintext -d '{"name": "Tracey"}' :8080 pb.Service/SayHello
{
  "message": "Hello Tracey"
}

# Packages

No description provided by the author
No description provided by the author

# Functions

MakeEndpointOfSayHello creates the endpoint for s.SayHello.
No description provided by the author
ValidateSayHelloRequest creates a validator for SayHelloRequest.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Service is used for saying hello.