handler

package
v3.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPanicHandler = new(PanicHandler)

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Name string
	// contains filtered or unexported fields
}

func NewChain

func NewChain(name string, paincChain RpcHander, errChange ErrorChangeFun, handlers ...RpcHander) *Chain

func (*Chain) Execute

func (this *Chain) Execute(ctx context.Context, req *vearchpb.PartitionData, reply *vearchpb.PartitionData) error

type ErrorChangeFun

type ErrorChangeFun func(ctx context.Context, err error, req *vearchpb.PartitionData, reply *vearchpb.PartitionData) error

type PanicHandler

type PanicHandler int

func (PanicHandler) Execute

type RpcHander

type RpcHander interface {
	Execute(ctx context.Context, req *vearchpb.PartitionData, resp *vearchpb.PartitionData) error
}

Jump to

Keyboard shortcuts

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