()
| 9 | ) |
| 10 | |
| 11 | func Example() (*reflectv1beta1.GetFileDescriptorSetResponse, error) { |
| 12 | client := reflectv1beta1connect.NewFileDescriptorSetServiceClient( |
| 13 | http.DefaultClient, |
| 14 | "https://buf.build", |
| 15 | ) |
| 16 | request := &reflectv1beta1.GetFileDescriptorSetRequest{ |
| 17 | Module: "buf.build/connectrpc/eliza", |
| 18 | } |
| 19 | // If you're using a private BSR, set your Authorization header to a |
| 20 | // BUF_TOKEN value. |
| 21 | // |
| 22 | // request.Header().Set("Authorization", "Bearer <BUF_TOKEN>") |
| 23 | response, err := client.GetFileDescriptorSet(context.Background(), request) |
| 24 | if err != nil { |
| 25 | return nil, err |
| 26 | } |
| 27 | |
| 28 | return response, nil |
| 29 | } |
no outgoing calls