conf

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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_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 (*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

AllErrors returns a list of validation violation errors.

func (ServiceConfig_UuidServiceMultiError) Error

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

Cause function returns cause value.

func (ServiceConfig_UuidServiceValidationError) Error

Error satisfies the builtin error interface

func (ServiceConfig_UuidServiceValidationError) ErrorName

ErrorName returns error name.

func (ServiceConfig_UuidServiceValidationError) Field

Field function returns field value.

func (ServiceConfig_UuidServiceValidationError) Key

Key function returns key value.

func (ServiceConfig_UuidServiceValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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