# Pagerless for gRPC (Go)

> Interceptors for both sides. Each method becomes a route like gRPC /shop.Orders/Get.

URL: https://pagerless.dev/integrations/grpc
Updated: 2026-10-22

## Set up

```bash
go get github.com/lcbasu/pagerless-go/grpc@v0.2.0
```

```go
import pagerlessgrpc "github.com/lcbasu/pagerless-go/grpc"

srv := grpc.NewServer(pagerlessgrpc.ServerOptions()...)
conn, err := grpc.NewClient(addr, pagerlessgrpc.DialOptions()...)
```

## What it catches

- Server errors with code Unknown, Internal or DataLoss.
- Client calls that fail with Unavailable, DeadlineExceeded, Internal and similar.
- Status codes mapped to HTTP (Internal is 500), so floors like a 5xx burst apply.

## Questions

### Will NotFound or InvalidArgument alert?

No. Only server-side failures are reported.
