interceptor

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientInvoke

func ClientInvoke(ctx context.Context, req, rep interface{}, invoke Invoker, clientInvoker []ClientInvoker) error

func ServerHandle

func ServerHandle(ctx context.Context, serverHandles []ServerHandler, handler Handler, req interface{}) (rep interface{}, err error)

Types

type ClientInvoker

type ClientInvoker func(ctx context.Context, req, rep interface{}, invoker Invoker) error

type Handler

type Handler func(ctx context.Context, req interface{}) (rep interface{}, err error)

type Invoker

type Invoker func(ctx context.Context, req, rep interface{}) error

type ServerHandler

type ServerHandler func(ctx context.Context, req interface{}, handler Handler) (rep interface{}, err error)

Jump to

Keyboard shortcuts

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