Categorygithub.com/tangelo-labs/go-grpcx
repositorypackage
0.0.5
Repository: https://github.com/tangelo-labs/go-grpcx.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

gRPCx

This package provides a simple set of utilities for common use cases when working with gRPC protocol and protocol buffers.

Installation

go get github.com/tangelo-labs/go-grpcx

Usage

Dialing a gRPC backend using a configuration string:

package main

import (
	"context"

	"github.com/tangelo-labs/go-grpcx"
)

func main() {
	ctx := context.Background()
    conn, err := grpcx.ParseClientConfigDial(ctx, `grpc://example.com:443?tls=true&blocking=true&timeout=10s`)
    if err != nil {
        panic(err)
    }
    
    // use conn to build a gRPC client.
}

See client.go and related tests for more examples and available options.