interceptors

package
v0.2.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScenarioFromContext

func ScenarioFromContext(ctx context.Context) (string, bool)

...

func ScenarioIntoContext

func ScenarioIntoContext(ctx context.Context, scen *godog.Scenario) context.Context

...

func ScenarioUnaryInterceptor

func ScenarioUnaryInterceptor(next connect.UnaryFunc) connect.UnaryFunc

...

func ValidateUnaryInterceptor

func ValidateUnaryInterceptor(next connect.UnaryFunc) connect.UnaryFunc

ValidateUnaryInterceptor validates that responses are valid according to Protobuf annotations. Invalid responses result in an Internal error code with the validation failures as a message. Requests are not validated to prevent obscuring the validation implemented by the server.

Server validation does not currently include response validation. See connectrpc/validate-go#28 for details.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL