Skip to content

Commit

Permalink
removing old exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
AnomalRoil committed Jul 31, 2024
1 parent 38ce42c commit d936825
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions internal/grpc/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@ The client connects to a drand gRPC endpoint to fetch randomness. The gRPC
client has some advantages over the HTTP client - it is more compact
on-the-wire and supports streaming and authentication.
Example:
package main
import (
"encoding/hex"
"github.com/drand/drand/v2/client"
"github.com/drand/drand/v2/client/grpc"
)
const (
grpcAddr = "example.drand.grpc.server:4444"
certPath = "/path/to/drand-grpc.cert"
)
var chainHash, _ = hex.DecodeString("8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce")
func main() {
gc, err := grpc.New(grpcAddr, certPath, false)
c, err := client.New(
client.From(gc),
client.WithChainHash(chainHash),
)
}
A path to a file that holds TLS credentials for the drand server is required
to validate server connections. Alternatively set the final parameter to
`true` to enable _insecure_ connections (not recommended).
Expand Down

0 comments on commit d936825

Please sign in to comment.