Skip to content

Client side code #72

@rytsh

Description

@rytsh

I am using these imports to call health check

	"buf.build/gen/go/grpc/grpc/connectrpc/go/grpc/health/v1/healthv1connect"
	healthv1 "buf.build/gen/go/grpc/grpc/protocolbuffers/go/grpc/health/v1"

But if I use this one and mix with grpc imports than I get issue.

panic: proto: file "grpc/health/v1/health.proto" is already registered
                previously from: "buf.build/gen/go/grpc/grpc/protocolbuffers/go/grpc/health/v1"
                currently from:  "google.golang.org/grpc/health/grpc_health_v1"
        See https://protobuf.dev/reference/go/faq#namespace-conflict

Could you show how to call this server code?

[EDIT]
Generated code and replaced to original package to use it, can we do it same in this repo?
https://github.com/worldline-go/grpc/blob/main/health/v1/healthv1connect/health.connect.go#L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions