common

package module
v0.0.0-...-2f31955 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextHeaderInterceptor

type ContextHeaderInterceptor func(ctx context.Context, header http.Header) (context.Context, error)

ContextHeaderInterceptor is a server interceptor that fails all call with the error it returns.

func (ContextHeaderInterceptor) WrapStreamingClient

func (chi ContextHeaderInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc

func (ContextHeaderInterceptor) WrapStreamingHandler

func (chi ContextHeaderInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc

func (ContextHeaderInterceptor) WrapUnary

func (chi ContextHeaderInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc

type ContextSpecInterceptor

type ContextSpecInterceptor func(ctx context.Context, spec connect.Spec) (context.Context, error)

ContextSpecInterceptor is a server interceptor that fails all call with the error it returns.

func (ContextSpecInterceptor) WrapStreamingClient

func (csi ContextSpecInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc

func (ContextSpecInterceptor) WrapStreamingHandler

func (csi ContextSpecInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc

func (ContextSpecInterceptor) WrapUnary

func (csi ContextSpecInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc

Jump to

Keyboard shortcuts

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