faultinjection

package
v0.18.21 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteAbort

type RouteAbort struct {
	// Percentage of requests that should be aborted, defaulting to 0.
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	Percentage float32 `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// This should be a standard HTTP status, i.e. 503. Defaults to 0.
	HttpStatus           uint32   `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RouteAbort) Descriptor

func (*RouteAbort) Descriptor() ([]byte, []int)

func (*RouteAbort) Equal

func (this *RouteAbort) Equal(that interface{}) bool

func (*RouteAbort) GetHttpStatus

func (m *RouteAbort) GetHttpStatus() uint32

func (*RouteAbort) GetPercentage

func (m *RouteAbort) GetPercentage() float32

func (*RouteAbort) ProtoMessage

func (*RouteAbort) ProtoMessage()

func (*RouteAbort) Reset

func (m *RouteAbort) Reset()

func (*RouteAbort) String

func (m *RouteAbort) String() string

func (*RouteAbort) XXX_DiscardUnknown

func (m *RouteAbort) XXX_DiscardUnknown()

func (*RouteAbort) XXX_Marshal

func (m *RouteAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteAbort) XXX_Merge

func (m *RouteAbort) XXX_Merge(src proto.Message)

func (*RouteAbort) XXX_Size

func (m *RouteAbort) XXX_Size() int

func (*RouteAbort) XXX_Unmarshal

func (m *RouteAbort) XXX_Unmarshal(b []byte) error

type RouteDelay

type RouteDelay struct {
	// Percentage of requests that should be delayed, defaulting to 0.
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	Percentage float32 `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// Fixed delay, defaulting to 0.
	FixedDelay           *time.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3,stdduration" json:"fixed_delay,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*RouteDelay) Descriptor

func (*RouteDelay) Descriptor() ([]byte, []int)

func (*RouteDelay) Equal

func (this *RouteDelay) Equal(that interface{}) bool

func (*RouteDelay) GetFixedDelay

func (m *RouteDelay) GetFixedDelay() *time.Duration

func (*RouteDelay) GetPercentage

func (m *RouteDelay) GetPercentage() float32

func (*RouteDelay) ProtoMessage

func (*RouteDelay) ProtoMessage()

func (*RouteDelay) Reset

func (m *RouteDelay) Reset()

func (*RouteDelay) String

func (m *RouteDelay) String() string

func (*RouteDelay) XXX_DiscardUnknown

func (m *RouteDelay) XXX_DiscardUnknown()

func (*RouteDelay) XXX_Marshal

func (m *RouteDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteDelay) XXX_Merge

func (m *RouteDelay) XXX_Merge(src proto.Message)

func (*RouteDelay) XXX_Size

func (m *RouteDelay) XXX_Size() int

func (*RouteDelay) XXX_Unmarshal

func (m *RouteDelay) XXX_Unmarshal(b []byte) error

type RouteFaults

type RouteFaults struct {
	Abort                *RouteAbort `protobuf:"bytes,1,opt,name=abort,proto3" json:"abort,omitempty"`
	Delay                *RouteDelay `protobuf:"bytes,2,opt,name=delay,proto3" json:"delay,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*RouteFaults) Descriptor

func (*RouteFaults) Descriptor() ([]byte, []int)

func (*RouteFaults) Equal

func (this *RouteFaults) Equal(that interface{}) bool

func (*RouteFaults) GetAbort

func (m *RouteFaults) GetAbort() *RouteAbort

func (*RouteFaults) GetDelay

func (m *RouteFaults) GetDelay() *RouteDelay

func (*RouteFaults) ProtoMessage

func (*RouteFaults) ProtoMessage()

func (*RouteFaults) Reset

func (m *RouteFaults) Reset()

func (*RouteFaults) String

func (m *RouteFaults) String() string

func (*RouteFaults) XXX_DiscardUnknown

func (m *RouteFaults) XXX_DiscardUnknown()

func (*RouteFaults) XXX_Marshal

func (m *RouteFaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteFaults) XXX_Merge

func (m *RouteFaults) XXX_Merge(src proto.Message)

func (*RouteFaults) XXX_Size

func (m *RouteFaults) XXX_Size() int

func (*RouteFaults) XXX_Unmarshal

func (m *RouteFaults) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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