
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
github.com/BufferZoneCorp/grpc-client
Advanced tools
grpc-client provides lightweight gRPC connection management, metadata helpers, and connectivity utilities for Go services. It is designed to complement google.golang.org/grpc with higher-level abstractions for connection lifecycle and retry configuration.
Features:
ConnConfig — typed configuration struct (address, TLS, timeout, max retries, metadata)Connection — managed connection with Close, Metadata, and Ping helpersprotoc-gen-go-grpcgo get github.com/BufferZoneCorp/grpc-client
import grpcclient "github.com/BufferZoneCorp/grpc-client"
package main
import (
"fmt"
"log"
"time"
grpcclient "github.com/BufferZoneCorp/grpc-client"
)
func main() {
cfg := grpcclient.ConnConfig{
Address: "grpc.example.com:443",
TLSEnabled: true,
Timeout: 5 * time.Second,
MaxRetries: 3,
Metadata: map[string]string{
"x-api-key": "my-api-key",
"x-client-id": "payments-service",
},
}
conn, err := grpcclient.New(cfg)
if err != nil {
log.Fatal(err)
}
defer conn.Close()
// Check endpoint reachability before sending RPCs
if !conn.Ping() {
log.Fatal("gRPC endpoint is not reachable")
}
// Inspect connection metadata (useful for interceptors)
for k, v := range conn.Metadata() {
fmt.Printf(" %s: %s\n", k, v)
}
fmt.Println("connection ready")
}
cfg := grpcclient.ConnConfig{
Address: "internal-svc:9090",
TLSEnabled: false,
Timeout: 3 * time.Second,
MaxRetries: 5,
}
conn, err := grpcclient.New(cfg)
if err != nil {
log.Fatal(err)
}
defer conn.Close()
| Field | Type | Description |
|---|---|---|
Address | string | host:port of the gRPC server |
TLSEnabled | bool | Enable TLS transport |
Timeout | time.Duration | Dial and per-call timeout |
MaxRetries | int | Maximum number of retry attempts |
Metadata | map[string]string | Key-value pairs sent as gRPC metadata headers |
| Method | Signature | Description |
|---|---|---|
New | (cfg ConnConfig) (*Connection, error) | Create a new managed connection |
Close | () | Release the connection and cancel its context |
Metadata | () map[string]string | Return the configured metadata map |
Ping | () bool | TCP-level reachability probe |
MIT — see LICENSE.
FAQs
Unknown package
Did you know?

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.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.