Documentation ¶
Index ¶
- Variables
- func LoadServiceConfig() []configutil.Option
- type ServiceConfig
- func (*ServiceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig) GetUuidService() *ServiceConfig_UuidService
- 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_UuidService
- func (*ServiceConfig_UuidService) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig_UuidService) GetInstanceId() string
- func (x *ServiceConfig_UuidService) GetInstanceName() string
- func (x *ServiceConfig_UuidService) GetMetadata() map[string]string
- func (*ServiceConfig_UuidService) ProtoMessage()
- func (x *ServiceConfig_UuidService) ProtoReflect() protoreflect.Message
- func (x *ServiceConfig_UuidService) Reset()
- func (x *ServiceConfig_UuidService) String() string
- func (m *ServiceConfig_UuidService) Validate() error
- func (m *ServiceConfig_UuidService) ValidateAll() error
- type ServiceConfig_UuidServiceMultiError
- type ServiceConfig_UuidServiceValidationError
- func (e ServiceConfig_UuidServiceValidationError) Cause() error
- func (e ServiceConfig_UuidServiceValidationError) Error() string
- func (e ServiceConfig_UuidServiceValidationError) ErrorName() string
- func (e ServiceConfig_UuidServiceValidationError) Field() string
- func (e ServiceConfig_UuidServiceValidationError) Key() bool
- func (e ServiceConfig_UuidServiceValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_app_uuid_service_internal_conf_config_conf_proto protoreflect.FileDescriptor
Functions ¶
func LoadServiceConfig ¶ added in v0.0.9
func LoadServiceConfig() []configutil.Option
LoadServiceConfig 加载服务配置 由 setuputil.NewLauncherManager 进行加载赋值
Types ¶
type ServiceConfig ¶
type ServiceConfig struct { UuidService *ServiceConfig_UuidService `protobuf:"bytes,2,opt,name=uuid_service,json=uuidService,proto3" json:"uuid_service,omitempty"` // contains filtered or unexported fields }
func GetServiceConfig ¶ added in v0.0.9
func GetServiceConfig() *ServiceConfig
func (*ServiceConfig) Descriptor
deprecated
func (*ServiceConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.
func (*ServiceConfig) GetUuidService ¶
func (x *ServiceConfig) GetUuidService() *ServiceConfig_UuidService
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_UuidService ¶
type ServiceConfig_UuidService struct { InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` InstanceName string `protobuf:"bytes,2,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ServiceConfig_UuidService) Descriptor
deprecated
func (*ServiceConfig_UuidService) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig_UuidService.ProtoReflect.Descriptor instead.
func (*ServiceConfig_UuidService) GetInstanceId ¶
func (x *ServiceConfig_UuidService) GetInstanceId() string
func (*ServiceConfig_UuidService) GetInstanceName ¶
func (x *ServiceConfig_UuidService) GetInstanceName() string
func (*ServiceConfig_UuidService) GetMetadata ¶
func (x *ServiceConfig_UuidService) GetMetadata() map[string]string
func (*ServiceConfig_UuidService) ProtoMessage ¶
func (*ServiceConfig_UuidService) ProtoMessage()
func (*ServiceConfig_UuidService) ProtoReflect ¶
func (x *ServiceConfig_UuidService) ProtoReflect() protoreflect.Message
func (*ServiceConfig_UuidService) Reset ¶
func (x *ServiceConfig_UuidService) Reset()
func (*ServiceConfig_UuidService) String ¶
func (x *ServiceConfig_UuidService) String() string
func (*ServiceConfig_UuidService) Validate ¶
func (m *ServiceConfig_UuidService) Validate() error
Validate checks the field values on ServiceConfig_UuidService 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_UuidService) ValidateAll ¶
func (m *ServiceConfig_UuidService) ValidateAll() error
ValidateAll checks the field values on ServiceConfig_UuidService 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_UuidServiceMultiError, or nil if none found.
type ServiceConfig_UuidServiceMultiError ¶
type ServiceConfig_UuidServiceMultiError []error
ServiceConfig_UuidServiceMultiError is an error wrapping multiple validation errors returned by ServiceConfig_UuidService.ValidateAll() if the designated constraints aren't met.
func (ServiceConfig_UuidServiceMultiError) AllErrors ¶
func (m ServiceConfig_UuidServiceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceConfig_UuidServiceMultiError) Error ¶
func (m ServiceConfig_UuidServiceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceConfig_UuidServiceValidationError ¶
type ServiceConfig_UuidServiceValidationError struct {
// contains filtered or unexported fields
}
ServiceConfig_UuidServiceValidationError is the validation error returned by ServiceConfig_UuidService.Validate if the designated constraints aren't met.
func (ServiceConfig_UuidServiceValidationError) Cause ¶
func (e ServiceConfig_UuidServiceValidationError) Cause() error
Cause function returns cause value.
func (ServiceConfig_UuidServiceValidationError) Error ¶
func (e ServiceConfig_UuidServiceValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceConfig_UuidServiceValidationError) ErrorName ¶
func (e ServiceConfig_UuidServiceValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceConfig_UuidServiceValidationError) Field ¶
func (e ServiceConfig_UuidServiceValidationError) Field() string
Field function returns field value.
func (ServiceConfig_UuidServiceValidationError) Key ¶
func (e ServiceConfig_UuidServiceValidationError) Key() bool
Key function returns key value.
func (ServiceConfig_UuidServiceValidationError) Reason ¶
func (e ServiceConfig_UuidServiceValidationError) Reason() string
Reason function returns reason value.