conf

package
v0.0.0-...-c1cfc5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

conf

服务私有配置

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (ServiceConfigValidationError) Error

Error satisfies the builtin error interface

func (ServiceConfigValidationError) ErrorName

func (e ServiceConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ServiceConfigValidationError) Field

Field function returns field value.

func (ServiceConfigValidationError) Key

Key function returns key value.

func (ServiceConfigValidationError) Reason

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 (*ServiceConfig_UserService) ProtoMessage

func (*ServiceConfig_UserService) ProtoMessage()

func (*ServiceConfig_UserService) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (ServiceConfig_UserServiceMultiError) Error

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

Cause function returns cause value.

func (ServiceConfig_UserServiceValidationError) Error

Error satisfies the builtin error interface

func (ServiceConfig_UserServiceValidationError) ErrorName

ErrorName returns error name.

func (ServiceConfig_UserServiceValidationError) Field

Field function returns field value.

func (ServiceConfig_UserServiceValidationError) Key

Key function returns key value.

func (ServiceConfig_UserServiceValidationError) Reason

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 (*ServiceConfig_UserService_Snowflake) Reset

func (*ServiceConfig_UserService_Snowflake) String

func (*ServiceConfig_UserService_Snowflake) Validate

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

AllErrors returns a list of validation violation errors.

func (ServiceConfig_UserService_SnowflakeMultiError) Error

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

Cause function returns cause value.

func (ServiceConfig_UserService_SnowflakeValidationError) Error

Error satisfies the builtin error interface

func (ServiceConfig_UserService_SnowflakeValidationError) ErrorName

ErrorName returns error name.

func (ServiceConfig_UserService_SnowflakeValidationError) Field

Field function returns field value.

func (ServiceConfig_UserService_SnowflakeValidationError) Key

Key function returns key value.

func (ServiceConfig_UserService_SnowflakeValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL