conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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_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

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

func (*ServiceConfig_TestingService) ProtoMessage()

func (*ServiceConfig_TestingService) ProtoReflect

func (*ServiceConfig_TestingService) Reset

func (x *ServiceConfig_TestingService) Reset()

func (*ServiceConfig_TestingService) 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

AllErrors returns a list of validation violation errors.

func (ServiceConfig_TestingServiceMultiError) Error

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

Cause function returns cause value.

func (ServiceConfig_TestingServiceValidationError) Error

Error satisfies the builtin error interface

func (ServiceConfig_TestingServiceValidationError) ErrorName

ErrorName returns error name.

func (ServiceConfig_TestingServiceValidationError) Field

Field function returns field value.

func (ServiceConfig_TestingServiceValidationError) Key

Key function returns key value.

func (ServiceConfig_TestingServiceValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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