faulttolerance

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSendFilterFactory

func CreateSendFilterFactory(conf map[string]interface{}) (api.StreamFilterChainFactory, error)

Types

type SendFilter

type SendFilter struct {
	// contains filtered or unexported fields
}

func NewSendFilter

func NewSendFilter(config *v2.FaultToleranceFilterConfig, invocationStatFactory *regulator.InvocationStatFactory) *SendFilter

func (*SendFilter) Append

func (f *SendFilter) Append(ctx context.Context, headers api.HeaderMap, buf buffer.IoBuffer, trailers api.HeaderMap) api.StreamFilterStatus

func (*SendFilter) IsException

func (f *SendFilter) IsException(requestInfo api.RequestInfo) bool

func (*SendFilter) OnDestroy

func (f *SendFilter) OnDestroy()

func (*SendFilter) SetSenderFilterHandler

func (f *SendFilter) SetSenderFilterHandler(handler api.StreamSenderFilterHandler)

type SendFilterFactory

type SendFilterFactory struct {
	// contains filtered or unexported fields
}

func (*SendFilterFactory) CreateFilterChain

func (f *SendFilterFactory) CreateFilterChain(context context.Context, callbacks api.StreamFilterChainFactoryCallbacks)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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