connectrpc

package
v0.0.0-...-f367847 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalErrorMessage = "Unexpected error. Please try later."

Functions

This section is empty.

Types

type ConnectWebServer

type ConnectWebServer struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func New

func New(handlerGetters []HandlerGetter, opts ...server.Option) *ConnectWebServer

func (*ConnectWebServer) Launch

func (s *ConnectWebServer) Launch(serverListenerAddress string)

Launch should be run in a go func(), watch for termination by waiting on IsTerminating() channel

type ContentTypeInterceptor

type ContentTypeInterceptor struct {
	// contains filtered or unexported fields
}

func (ContentTypeInterceptor) WrapStreamingClient

Noop

func (ContentTypeInterceptor) WrapStreamingHandler

func (ContentTypeInterceptor) WrapUnary

type ErrorsInterceptor

type ErrorsInterceptor struct {
	// contains filtered or unexported fields
}

func NewErrorsInterceptor

func NewErrorsInterceptor(fallbackLogger *zap.Logger, options ...Option) *ErrorsInterceptor

func (*ErrorsInterceptor) WrapStreamingClient

func (*ErrorsInterceptor) WrapStreamingHandler

func (*ErrorsInterceptor) WrapUnary

WrapUnary implements [Interceptor] by applying the interceptor function.

type HandlerGetter

type HandlerGetter func(opts ...connect.HandlerOption) (string, http.Handler)

type Option

type Option func(*ErrorsInterceptor)

func WithErrorMapper

func WithErrorMapper(callback func(error) error) Option

Jump to

Keyboard shortcuts

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