Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc: Add StaticMethod CallOption #6926

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rpc_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@
func (EmptyCallOption) before(*callInfo) error { return nil }
func (EmptyCallOption) after(*callInfo, *csAttempt) {}

// RegisteredMethodCallOption is a call option that specifies that a call comes
// from a registered method.
type RegisteredMethodCallOption struct{}
dfawley marked this conversation as resolved.
Show resolved Hide resolved

func (RegisteredMethodCallOption) before(*callInfo) error { return nil }
func (RegisteredMethodCallOption) after(*callInfo, *csAttempt) {}

Check warning on line 197 in rpc_util.go

View check run for this annotation

Codecov / codecov/patch

rpc_util.go#L196-L197

Added lines #L196 - L197 were not covered by tests

// Header returns a CallOptions that retrieves the header metadata
// for a unary RPC.
func Header(md *metadata.MD) CallOption {
Expand Down
Loading