Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetSimple() *Simple
- func (m *Config) GetType() isConfig_Type
- 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 Config_Simple
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)deprecated
- func (x *Simple) GetFlags() map[string]bool
- func (*Simple) ProtoMessage()
- func (x *Simple) ProtoReflect() protoreflect.Message
- func (x *Simple) Reset()
- func (x *Simple) String() string
- func (m *Simple) Validate() error
- func (m *Simple) ValidateAll() error
- type SimpleMultiError
- type SimpleValidationError
Constants ¶
This section is empty.
Variables ¶
var File_config_module_featureflag_v1_featureflag_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Types that are assignable to Type: // // *Config_Simple Type isConfig_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
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 Config_Simple ¶
type Config_Simple struct {
Simple *Simple `protobuf:"bytes,1,opt,name=simple,proto3,oneof"`
}
type Simple ¶
type Simple struct { Flags map[string]bool `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Simple) Descriptor
deprecated
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ProtoReflect ¶
func (x *Simple) ProtoReflect() protoreflect.Message
func (*Simple) Validate ¶
Validate checks the field values on Simple 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 (*Simple) ValidateAll ¶
ValidateAll checks the field values on Simple 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 SimpleMultiError, or nil if none found.
type SimpleMultiError ¶
type SimpleMultiError []error
SimpleMultiError is an error wrapping multiple validation errors returned by Simple.ValidateAll() if the designated constraints aren't met.
func (SimpleMultiError) AllErrors ¶
func (m SimpleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SimpleMultiError) Error ¶
func (m SimpleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SimpleValidationError ¶
type SimpleValidationError struct {
// contains filtered or unexported fields
}
SimpleValidationError is the validation error returned by Simple.Validate if the designated constraints aren't met.
func (SimpleValidationError) Cause ¶
func (e SimpleValidationError) Cause() error
Cause function returns cause value.
func (SimpleValidationError) Error ¶
func (e SimpleValidationError) Error() string
Error satisfies the builtin error interface
func (SimpleValidationError) ErrorName ¶
func (e SimpleValidationError) ErrorName() string
ErrorName returns error name.
func (SimpleValidationError) Field ¶
func (e SimpleValidationError) Field() string
Field function returns field value.
func (SimpleValidationError) Key ¶
func (e SimpleValidationError) Key() bool
Key function returns key value.
func (SimpleValidationError) Reason ¶
func (e SimpleValidationError) Reason() string
Reason function returns reason value.