Documentation ¶
Index ¶
- Variables
- func LoadServiceConfig() []configutil.Option
- type ServiceConfig
- func (*ServiceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig) GetUserService() *ServiceConfig_UserService
- 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_UserService
- func (*ServiceConfig_UserService) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig_UserService) GetKey() string
- func (x *ServiceConfig_UserService) GetSnowflake() *ServiceConfig_UserService_Snowflake
- func (*ServiceConfig_UserService) ProtoMessage()
- func (x *ServiceConfig_UserService) ProtoReflect() protoreflect.Message
- func (x *ServiceConfig_UserService) Reset()
- func (x *ServiceConfig_UserService) String() string
- func (m *ServiceConfig_UserService) Validate() error
- func (m *ServiceConfig_UserService) ValidateAll() error
- type ServiceConfig_UserServiceMultiError
- type ServiceConfig_UserServiceValidationError
- func (e ServiceConfig_UserServiceValidationError) Cause() error
- func (e ServiceConfig_UserServiceValidationError) Error() string
- func (e ServiceConfig_UserServiceValidationError) ErrorName() string
- func (e ServiceConfig_UserServiceValidationError) Field() string
- func (e ServiceConfig_UserServiceValidationError) Key() bool
- func (e ServiceConfig_UserServiceValidationError) Reason() string
- type ServiceConfig_UserService_Snowflake
- func (*ServiceConfig_UserService_Snowflake) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceConfig_UserService_Snowflake) GetInstanceId() string
- func (x *ServiceConfig_UserService_Snowflake) GetInstanceName() string
- func (x *ServiceConfig_UserService_Snowflake) GetMetadata() map[string]string
- func (*ServiceConfig_UserService_Snowflake) ProtoMessage()
- func (x *ServiceConfig_UserService_Snowflake) ProtoReflect() protoreflect.Message
- func (x *ServiceConfig_UserService_Snowflake) Reset()
- func (x *ServiceConfig_UserService_Snowflake) String() string
- func (m *ServiceConfig_UserService_Snowflake) Validate() error
- func (m *ServiceConfig_UserService_Snowflake) ValidateAll() error
- type ServiceConfig_UserService_SnowflakeMultiError
- type ServiceConfig_UserService_SnowflakeValidationError
- func (e ServiceConfig_UserService_SnowflakeValidationError) Cause() error
- func (e ServiceConfig_UserService_SnowflakeValidationError) Error() string
- func (e ServiceConfig_UserService_SnowflakeValidationError) ErrorName() string
- func (e ServiceConfig_UserService_SnowflakeValidationError) Field() string
- func (e ServiceConfig_UserService_SnowflakeValidationError) Key() bool
- func (e ServiceConfig_UserService_SnowflakeValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_app_user_service_internal_conf_config_conf_proto protoreflect.FileDescriptor
Functions ¶
func LoadServiceConfig ¶
func LoadServiceConfig() []configutil.Option
LoadServiceConfig 加载服务配置 由 setuputil.NewLauncherManager 进行加载赋值
Types ¶
type ServiceConfig ¶
type ServiceConfig struct { UserService *ServiceConfig_UserService `protobuf:"bytes,1,opt,name=user_service,json=userService,proto3" json:"user_service,omitempty"` // contains filtered or unexported fields }
func (*ServiceConfig) Descriptor
deprecated
func (*ServiceConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.
func (*ServiceConfig) GetUserService ¶
func (x *ServiceConfig) GetUserService() *ServiceConfig_UserService
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_UserService ¶
type ServiceConfig_UserService struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Snowflake *ServiceConfig_UserService_Snowflake `protobuf:"bytes,2,opt,name=snowflake,proto3" json:"snowflake,omitempty"` // contains filtered or unexported fields }
func (*ServiceConfig_UserService) Descriptor
deprecated
func (*ServiceConfig_UserService) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig_UserService.ProtoReflect.Descriptor instead.
func (*ServiceConfig_UserService) GetKey ¶
func (x *ServiceConfig_UserService) GetKey() string
func (*ServiceConfig_UserService) GetSnowflake ¶
func (x *ServiceConfig_UserService) GetSnowflake() *ServiceConfig_UserService_Snowflake
func (*ServiceConfig_UserService) ProtoMessage ¶
func (*ServiceConfig_UserService) ProtoMessage()
func (*ServiceConfig_UserService) ProtoReflect ¶
func (x *ServiceConfig_UserService) ProtoReflect() protoreflect.Message
func (*ServiceConfig_UserService) Reset ¶
func (x *ServiceConfig_UserService) Reset()
func (*ServiceConfig_UserService) String ¶
func (x *ServiceConfig_UserService) String() string
func (*ServiceConfig_UserService) Validate ¶
func (m *ServiceConfig_UserService) Validate() error
Validate checks the field values on ServiceConfig_UserService 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_UserService) ValidateAll ¶
func (m *ServiceConfig_UserService) ValidateAll() error
ValidateAll checks the field values on ServiceConfig_UserService 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_UserServiceMultiError, or nil if none found.
type ServiceConfig_UserServiceMultiError ¶
type ServiceConfig_UserServiceMultiError []error
ServiceConfig_UserServiceMultiError is an error wrapping multiple validation errors returned by ServiceConfig_UserService.ValidateAll() if the designated constraints aren't met.
func (ServiceConfig_UserServiceMultiError) AllErrors ¶
func (m ServiceConfig_UserServiceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceConfig_UserServiceMultiError) Error ¶
func (m ServiceConfig_UserServiceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceConfig_UserServiceValidationError ¶
type ServiceConfig_UserServiceValidationError struct {
// contains filtered or unexported fields
}
ServiceConfig_UserServiceValidationError is the validation error returned by ServiceConfig_UserService.Validate if the designated constraints aren't met.
func (ServiceConfig_UserServiceValidationError) Cause ¶
func (e ServiceConfig_UserServiceValidationError) Cause() error
Cause function returns cause value.
func (ServiceConfig_UserServiceValidationError) Error ¶
func (e ServiceConfig_UserServiceValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceConfig_UserServiceValidationError) ErrorName ¶
func (e ServiceConfig_UserServiceValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceConfig_UserServiceValidationError) Field ¶
func (e ServiceConfig_UserServiceValidationError) Field() string
Field function returns field value.
func (ServiceConfig_UserServiceValidationError) Key ¶
func (e ServiceConfig_UserServiceValidationError) Key() bool
Key function returns key value.
func (ServiceConfig_UserServiceValidationError) Reason ¶
func (e ServiceConfig_UserServiceValidationError) Reason() string
Reason function returns reason value.
type ServiceConfig_UserService_Snowflake ¶
type ServiceConfig_UserService_Snowflake 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 }
Snowflake nodeid for snowflake
func (*ServiceConfig_UserService_Snowflake) Descriptor
deprecated
func (*ServiceConfig_UserService_Snowflake) Descriptor() ([]byte, []int)
Deprecated: Use ServiceConfig_UserService_Snowflake.ProtoReflect.Descriptor instead.
func (*ServiceConfig_UserService_Snowflake) GetInstanceId ¶
func (x *ServiceConfig_UserService_Snowflake) GetInstanceId() string
func (*ServiceConfig_UserService_Snowflake) GetInstanceName ¶
func (x *ServiceConfig_UserService_Snowflake) GetInstanceName() string
func (*ServiceConfig_UserService_Snowflake) GetMetadata ¶
func (x *ServiceConfig_UserService_Snowflake) GetMetadata() map[string]string
func (*ServiceConfig_UserService_Snowflake) ProtoMessage ¶
func (*ServiceConfig_UserService_Snowflake) ProtoMessage()
func (*ServiceConfig_UserService_Snowflake) ProtoReflect ¶
func (x *ServiceConfig_UserService_Snowflake) ProtoReflect() protoreflect.Message
func (*ServiceConfig_UserService_Snowflake) Reset ¶
func (x *ServiceConfig_UserService_Snowflake) Reset()
func (*ServiceConfig_UserService_Snowflake) String ¶
func (x *ServiceConfig_UserService_Snowflake) String() string
func (*ServiceConfig_UserService_Snowflake) Validate ¶
func (m *ServiceConfig_UserService_Snowflake) Validate() error
Validate checks the field values on ServiceConfig_UserService_Snowflake 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_UserService_Snowflake) ValidateAll ¶
func (m *ServiceConfig_UserService_Snowflake) ValidateAll() error
ValidateAll checks the field values on ServiceConfig_UserService_Snowflake 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_UserService_SnowflakeMultiError, or nil if none found.
type ServiceConfig_UserService_SnowflakeMultiError ¶
type ServiceConfig_UserService_SnowflakeMultiError []error
ServiceConfig_UserService_SnowflakeMultiError is an error wrapping multiple validation errors returned by ServiceConfig_UserService_Snowflake.ValidateAll() if the designated constraints aren't met.
func (ServiceConfig_UserService_SnowflakeMultiError) AllErrors ¶
func (m ServiceConfig_UserService_SnowflakeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceConfig_UserService_SnowflakeMultiError) Error ¶
func (m ServiceConfig_UserService_SnowflakeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceConfig_UserService_SnowflakeValidationError ¶
type ServiceConfig_UserService_SnowflakeValidationError struct {
// contains filtered or unexported fields
}
ServiceConfig_UserService_SnowflakeValidationError is the validation error returned by ServiceConfig_UserService_Snowflake.Validate if the designated constraints aren't met.
func (ServiceConfig_UserService_SnowflakeValidationError) Cause ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) Cause() error
Cause function returns cause value.
func (ServiceConfig_UserService_SnowflakeValidationError) Error ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceConfig_UserService_SnowflakeValidationError) ErrorName ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceConfig_UserService_SnowflakeValidationError) Field ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) Field() string
Field function returns field value.
func (ServiceConfig_UserService_SnowflakeValidationError) Key ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) Key() bool
Key function returns key value.
func (ServiceConfig_UserService_SnowflakeValidationError) Reason ¶
func (e ServiceConfig_UserService_SnowflakeValidationError) Reason() string
Reason function returns reason value.