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 ¶
func (PanicHandler) Execute(ctx context.Context, req *vearchpb.PartitionData, reply *vearchpb.PartitionData) error
type RpcHander ¶
type RpcHander interface {
Execute(ctx context.Context, req *vearchpb.PartitionData, resp *vearchpb.PartitionData) error
}
Click to show internal directories.
Click to hide internal directories.