Skip to content

Add grpchealth client#84

Open
emcfarlane wants to merge 1 commit intomainfrom
ed/healthClient
Open

Add grpchealth client#84
emcfarlane wants to merge 1 commit intomainfrom
ed/healthClient

Conversation

@emcfarlane
Copy link
Copy Markdown
Collaborator

Add a Client type with Check and Watch methods that wrap the internal generated protobuf types. Callers use only the library's own CheckRequest, CheckResponse, and Status types, so there is no proto registration conflict when the same process also imports google.golang.org/grpc/health/grpc_health_v1. Watch returns an iter.Seq2 iterator instead of a bespoke stream wrapper or channel to avoid a custom struct or goroutine.

Closes #72

Signed-off-by: Edward McFarlane <emcfarlane@buf.build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client side code

1 participant