middleware

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivityStreamServerInterceptor added in v0.31.0

func ActivityStreamServerInterceptor(activityClient activity.Client) grpc.StreamServerInterceptor

func ActivityUnaryServerInterceptor added in v0.31.0

func ActivityUnaryServerInterceptor(activityClient activity.Client) grpc.UnaryServerInterceptor

func RequestHTTPHandler added in v0.29.0

func RequestHTTPHandler(route string, fn func(route string, req *http.Request) error, next http.Handler) http.Handler

RequestHTTPHandler calls fn on each request.

func TimeoutStreamServerInterceptor

func TimeoutStreamServerInterceptor(fn func(method string) time.Duration) grpc.StreamServerInterceptor

func TimeoutUnaryServerInterceptor

func TimeoutUnaryServerInterceptor(fn func(method string) time.Duration) grpc.UnaryServerInterceptor

Types

type HTTPError added in v0.29.0

type HTTPError struct {
	Code    int
	Message string
}

func NewHTTPError added in v0.29.0

func NewHTTPError(code int, msg string) *HTTPError

func (*HTTPError) Error added in v0.29.0

func (e *HTTPError) Error() string

Jump to

Keyboard shortcuts

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