Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetSlowLog() *SlowLog
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Plugin
- type SlowLog
- func (*SlowLog) Descriptor() ([]byte, []int)deprecated
- func (x *SlowLog) GetThreshold() *durationpb.Duration
- func (*SlowLog) ProtoMessage()
- func (x *SlowLog) ProtoReflect() protoreflect.Message
- func (x *SlowLog) Reset()
- func (x *SlowLog) String() string
- func (m *SlowLog) Validate() error
- func (m *SlowLog) ValidateAll() error
- type SlowLogMultiError
- type SlowLogValidationError
Constants ¶
const (
Name = "debugMode"
)
Variables ¶
var File_types_plugins_debugmode_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SlowLog *SlowLog `protobuf:"bytes,1,opt,name=slow_log,json=slowLog,proto3" json:"slow_log,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetSlowLog ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Plugin ¶
type Plugin struct {
plugins.PluginMethodDefaultImpl
}
func (*Plugin) Config ¶
func (p *Plugin) Config() api.PluginConfig
func (*Plugin) Order ¶
func (p *Plugin) Order() plugins.PluginOrder
func (*Plugin) Type ¶
func (p *Plugin) Type() plugins.PluginType
type SlowLog ¶
type SlowLog struct { Threshold *durationpb.Duration `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // contains filtered or unexported fields }
func (*SlowLog) Descriptor
deprecated
func (*SlowLog) GetThreshold ¶
func (x *SlowLog) GetThreshold() *durationpb.Duration
func (*SlowLog) ProtoMessage ¶
func (*SlowLog) ProtoMessage()
func (*SlowLog) ProtoReflect ¶
func (x *SlowLog) ProtoReflect() protoreflect.Message
func (*SlowLog) Validate ¶
Validate checks the field values on SlowLog with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SlowLog) ValidateAll ¶
ValidateAll checks the field values on SlowLog with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SlowLogMultiError, or nil if none found.
type SlowLogMultiError ¶
type SlowLogMultiError []error
SlowLogMultiError is an error wrapping multiple validation errors returned by SlowLog.ValidateAll() if the designated constraints aren't met.
func (SlowLogMultiError) AllErrors ¶
func (m SlowLogMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SlowLogMultiError) Error ¶
func (m SlowLogMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SlowLogValidationError ¶
type SlowLogValidationError struct {
// contains filtered or unexported fields
}
SlowLogValidationError is the validation error returned by SlowLog.Validate if the designated constraints aren't met.
func (SlowLogValidationError) Cause ¶
func (e SlowLogValidationError) Cause() error
Cause function returns cause value.
func (SlowLogValidationError) Error ¶
func (e SlowLogValidationError) Error() string
Error satisfies the builtin error interface
func (SlowLogValidationError) ErrorName ¶
func (e SlowLogValidationError) ErrorName() string
ErrorName returns error name.
func (SlowLogValidationError) Field ¶
func (e SlowLogValidationError) Field() string
Field function returns field value.
func (SlowLogValidationError) Key ¶
func (e SlowLogValidationError) Key() bool
Key function returns key value.
func (SlowLogValidationError) Reason ¶
func (e SlowLogValidationError) Reason() string
Reason function returns reason value.