handler

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelHandler

type ChannelHandler func(c *context.Context, req chan *parcel.RocPacket, errs chan error) (
	chan proto.Message,
	chan error,
)

ChannelHandler for rpc service channel handler

type Fire

type Fire func(c *context.Context, req proto.Message) (proto.Message, error)

Fire run interceptor action

type Handler

type Handler func(c *context.Context, req *parcel.RocPacket, interrupt Interceptor) (rsp proto.Message, err error)

Handler for rpc service handler

type Interceptor

type Interceptor func(c *context.Context, req proto.Message, fire Fire) (proto.Message, error)

Interceptor for rpc request response interceptor function

type StreamHandler

type StreamHandler func(c *context.Context, req *parcel.RocPacket) (chan proto.Message, chan error)

StreamHandler for rpc service stream handler

type WrapperHandler

type WrapperHandler func(c *context.Context) (proto.Message, error)

WrapperHandler for all rpc function middleware

Jump to

Keyboard shortcuts

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