Documentation
¶
Overview ¶
Package mas contains mas properties configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SocketErr = syscall.Errno(10061) IOErr1 = io.ErrClosedPipe IOErr2 = io.ErrUnexpectedEOF NilPointerErr = errorString("invalid memory address or nil pointer dereference") SQLErr = mysql.NewSQLError(mysql.CRUnknownError, mysql.SSUnknownSQLState, "SQLErr") SQLTimeoutErr = mysql.NewSQLError(mysql.CRServerGone, mysql.SSUnknownSQLState, "SQLTimeoutErr") RedisCommandUKErr = RedisError("ERR unknown command") RedisCommandArgErr = RedisError("ERR wrong number of arguments for command") )
Functions ¶
func CompliancePercentage ¶ added in v1.0.0
func MysqlErrors ¶ added in v1.0.0
func MysqlErrors() []error
func RedisErrors ¶ added in v1.0.0
func RedisErrors() []error
Types ¶
type DelayInjection ¶ added in v1.0.0
type DelayInjection struct { Active bool `yaml:"active"` Percentage int `yaml:"percentage"` TimeMs int `yaml:"timeMs"` JitterMs int `yaml:"jitterMs"` }
DelayInjection delay configuration
func NewDelayInjection ¶ added in v1.0.0
func NewDelayInjection(active bool, percentage, timeMs, jitterMs int) *DelayInjection
NewDelayInjection sda
type ErrorInjection ¶ added in v1.0.0
type ErrorInjection struct { Active bool `yaml:"active"` Percentage int `yaml:"percentage"` // contains filtered or unexported fields }
ErrorInjection error configuration
func NewErrorInjection ¶ added in v1.0.0
func NewErrorInjection(active bool, percentage int) *ErrorInjection
type InjectionDuration ¶ added in v1.0.0
type InjectionDuration struct {
// contains filtered or unexported fields
}
InjectionDuration ingestion period details
func NewInjectionDuration ¶ added in v1.0.0
func NewInjectionDuration(duration, total int) *InjectionDuration
type InjectionError ¶ added in v1.0.0
InjectionError error details
type InjectionManagement ¶ added in v1.0.0
type InjectionManagement struct {
// contains filtered or unexported fields
}
InjectionManagement chaos injection details
func NewInjectionManagement ¶ added in v1.0.0
func NewInjectionManagement(chaos *InjectionProperties) *InjectionManagement
func (*InjectionManagement) AddError ¶ added in v1.0.0
func (i *InjectionManagement) AddError(errs []*InjectionError)
func (*InjectionManagement) Inject ¶ added in v1.0.0
func (i *InjectionManagement) Inject() error
Inject chaos injection triggering
func (*InjectionManagement) SetError ¶ added in v1.0.0
func (i *InjectionManagement) SetError(errs []error)
type InjectionProperties ¶ added in v1.0.0
type InjectionProperties struct { Active bool `yaml:"active"` Duration int `yaml:"duration"` Interval int `yaml:"interval"` Percentage int `yaml:"percentage"` DelayInjection *DelayInjection `yaml:"delayInjection"` ErrorInjection *ErrorInjection `yaml:"errorInjection"` }
InjectionProperties chaos configuration
type PropertiesConfiguration ¶
type PropertiesConfiguration struct { Version string `yaml:"version"` AppID string `yaml:"appId"` MonitorID string `yaml:"monitorId"` DatabaseName string `yaml:"databaseName"` Cloud string `yaml:"cloud"` Region string `yaml:"region"` Azs string `yaml:"azs"` }
PropertiesConfiguration yaml properties configuration entity
func (*PropertiesConfiguration) CalHashCode ¶
func (p *PropertiesConfiguration) CalHashCode() string
CalHashCode Combines some attribute values into a new character string to distinguish the saved configuration file
type RedisError ¶ added in v1.0.0
type RedisError string
RedisError redisError
func (RedisError) Error ¶ added in v1.0.0
func (e RedisError) Error() string
func (RedisError) RedisError ¶ added in v1.0.0
func (RedisError) RedisError()
Click to show internal directories.
Click to hide internal directories.