Documentation ¶
Index ¶
- Variables
- func LoadServiceConfig() []configutil.Option
- type ServiceConfig
- func (*ServiceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig) GetTestingService() *ServiceConfig_TestingService
- func (*ServiceConfig) ProtoMessage()
- func (x *ServiceConfig) ProtoReflect() protoreflect.Message
- func (x *ServiceConfig) Reset()
- func (x *ServiceConfig) String() string
- func (m *ServiceConfig) Validate() error
- func (m *ServiceConfig) ValidateAll() error
- type ServiceConfigMultiError
- type ServiceConfigValidationError
- func (e ServiceConfigValidationError) Cause() error
- func (e ServiceConfigValidationError) Error() string
- func (e ServiceConfigValidationError) ErrorName() string
- func (e ServiceConfigValidationError) Field() string
- func (e ServiceConfigValidationError) Key() bool
- func (e ServiceConfigValidationError) Reason() string
- type ServiceConfig_TestingService
- func (*ServiceConfig_TestingService) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig_TestingService) GetKey() string
- func (*ServiceConfig_TestingService) ProtoMessage()
- func (x *ServiceConfig_TestingService) ProtoReflect() protoreflect.Message
- func (x *ServiceConfig_TestingService) Reset()
- func (x *ServiceConfig_TestingService) String() string
- func (m *ServiceConfig_TestingService) Validate() error
- func (m *ServiceConfig_TestingService) ValidateAll() error
- type ServiceConfig_TestingServiceMultiError
- type ServiceConfig_TestingServiceValidationError
- func (e ServiceConfig_TestingServiceValidationError) Cause() error
- func (e ServiceConfig_TestingServiceValidationError) Error() string
- func (e ServiceConfig_TestingServiceValidationError) ErrorName() string
- func (e ServiceConfig_TestingServiceValidationError) Field() string
- func (e ServiceConfig_TestingServiceValidationError) Key() bool
- func (e ServiceConfig_TestingServiceValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_app_testing_service_internal_conf_config_conf_proto protoreflect.FileDescriptor
Functions ¶
func LoadServiceConfig ¶
func LoadServiceConfig() []configutil.Option
LoadServiceConfig 加载服务配置 由 setuputil.NewLauncherManager 进行加载赋值
Types ¶
type ServiceConfig ¶
type ServiceConfig struct { TestingService *ServiceConfig_TestingService `protobuf:"bytes,1,opt,name=testing_service,json=testingService,proto3" json:"testing_service,omitempty"` // contains filtered or unexported fields }
func (*ServiceConfig) Descriptor
deprecated
func (*ServiceConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.
func (*ServiceConfig) GetTestingService ¶
func (x *ServiceConfig) GetTestingService() *ServiceConfig_TestingService
func (*ServiceConfig) ProtoMessage ¶
func (*ServiceConfig) ProtoMessage()
func (*ServiceConfig) ProtoReflect ¶
func (x *ServiceConfig) ProtoReflect() protoreflect.Message
func (*ServiceConfig) Reset ¶
func (x *ServiceConfig) Reset()
func (*ServiceConfig) String ¶
func (x *ServiceConfig) String() string
func (*ServiceConfig) Validate ¶
func (m *ServiceConfig) Validate() error
Validate checks the field values on ServiceConfig 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 (*ServiceConfig) ValidateAll ¶
func (m *ServiceConfig) ValidateAll() error
ValidateAll checks the field values on ServiceConfig 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 ServiceConfigMultiError, or nil if none found.
type ServiceConfigMultiError ¶
type ServiceConfigMultiError []error
ServiceConfigMultiError is an error wrapping multiple validation errors returned by ServiceConfig.ValidateAll() if the designated constraints aren't met.
func (ServiceConfigMultiError) AllErrors ¶
func (m ServiceConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceConfigMultiError) Error ¶
func (m ServiceConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceConfigValidationError ¶
type ServiceConfigValidationError struct {
// contains filtered or unexported fields
}
ServiceConfigValidationError is the validation error returned by ServiceConfig.Validate if the designated constraints aren't met.
func (ServiceConfigValidationError) Cause ¶
func (e ServiceConfigValidationError) Cause() error
Cause function returns cause value.
func (ServiceConfigValidationError) Error ¶
func (e ServiceConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceConfigValidationError) ErrorName ¶
func (e ServiceConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceConfigValidationError) Field ¶
func (e ServiceConfigValidationError) Field() string
Field function returns field value.
func (ServiceConfigValidationError) Key ¶
func (e ServiceConfigValidationError) Key() bool
Key function returns key value.
func (ServiceConfigValidationError) Reason ¶
func (e ServiceConfigValidationError) Reason() string
Reason function returns reason value.
type ServiceConfig_TestingService ¶
type ServiceConfig_TestingService struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ServiceConfig_TestingService) Descriptor
deprecated
func (*ServiceConfig_TestingService) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig_TestingService.ProtoReflect.Descriptor instead.
func (*ServiceConfig_TestingService) GetKey ¶
func (x *ServiceConfig_TestingService) GetKey() string
func (*ServiceConfig_TestingService) ProtoMessage ¶
func (*ServiceConfig_TestingService) ProtoMessage()
func (*ServiceConfig_TestingService) ProtoReflect ¶
func (x *ServiceConfig_TestingService) ProtoReflect() protoreflect.Message
func (*ServiceConfig_TestingService) Reset ¶
func (x *ServiceConfig_TestingService) Reset()
func (*ServiceConfig_TestingService) String ¶
func (x *ServiceConfig_TestingService) String() string
func (*ServiceConfig_TestingService) Validate ¶
func (m *ServiceConfig_TestingService) Validate() error
Validate checks the field values on ServiceConfig_TestingService 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 (*ServiceConfig_TestingService) ValidateAll ¶
func (m *ServiceConfig_TestingService) ValidateAll() error
ValidateAll checks the field values on ServiceConfig_TestingService 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 ServiceConfig_TestingServiceMultiError, or nil if none found.
type ServiceConfig_TestingServiceMultiError ¶
type ServiceConfig_TestingServiceMultiError []error
ServiceConfig_TestingServiceMultiError is an error wrapping multiple validation errors returned by ServiceConfig_TestingService.ValidateAll() if the designated constraints aren't met.
func (ServiceConfig_TestingServiceMultiError) AllErrors ¶
func (m ServiceConfig_TestingServiceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceConfig_TestingServiceMultiError) Error ¶
func (m ServiceConfig_TestingServiceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceConfig_TestingServiceValidationError ¶
type ServiceConfig_TestingServiceValidationError struct {
// contains filtered or unexported fields
}
ServiceConfig_TestingServiceValidationError is the validation error returned by ServiceConfig_TestingService.Validate if the designated constraints aren't met.
func (ServiceConfig_TestingServiceValidationError) Cause ¶
func (e ServiceConfig_TestingServiceValidationError) Cause() error
Cause function returns cause value.
func (ServiceConfig_TestingServiceValidationError) Error ¶
func (e ServiceConfig_TestingServiceValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceConfig_TestingServiceValidationError) ErrorName ¶
func (e ServiceConfig_TestingServiceValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceConfig_TestingServiceValidationError) Field ¶
func (e ServiceConfig_TestingServiceValidationError) Field() string
Field function returns field value.
func (ServiceConfig_TestingServiceValidationError) Key ¶
func (e ServiceConfig_TestingServiceValidationError) Key() bool
Key function returns key value.
func (ServiceConfig_TestingServiceValidationError) Reason ¶
func (e ServiceConfig_TestingServiceValidationError) Reason() string
Reason function returns reason value.