types

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptorFunc

type InterceptorFunc[TReq proto.Message, TRes proto.Message] func(next *MethodInvocation[TReq, TRes]) *MethodInvocation[TReq, TRes]

type MethodFunc

type MethodFunc[TReq proto.Message, TRes proto.Message] func(context.Context, TReq) (TRes, error)

type MethodInvocation

type MethodInvocation[TReq proto.Message, TRes proto.Message] struct {
	Interceptors []InterceptorFunc[TReq, TRes]
	Method       MethodFunc[TReq, TRes]
	ServiceName  string
	MethodName   string
}

Jump to

Keyboard shortcuts

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