proxy

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallServiceMethod

func CallServiceMethod[TReq proto.Message, TRes proto.Message, Req interface{}, Res interface{}](
	ctx context.Context, req Req, allowAllNilFields bool, fn types.MethodFunc[TReq, TRes]) (res Res, err error)

func NewInvocationProxy

func NewInvocationProxy[TReq proto.Message, TRes proto.Message](serviceName, methodName string, fn types.MethodFunc[TReq, TRes]) types.MethodFunc[TReq, TRes]

NewInvocationProxy is a proxy function which wrap the original function with interceptors todo customize interceptors

Types

This section is empty.

Jump to

Keyboard shortcuts

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