Documentation ¶
Index ¶
- Variables
- type ConfigCenterType
- func (ConfigCenterType) EnumType() string
- func (ConfigCenterType) Enums() map[int][]string
- func (v ConfigCenterType) Label() string
- func (v ConfigCenterType) MarshalText() ([]byte, error)
- func (v ConfigCenterType) String() string
- func (v ConfigCenterType) StringEnums() (result []string)
- func (v *ConfigCenterType) UnmarshalText(data []byte) (err error)
- func (v *ConfigCenterType) WriteAnswer(field string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidConfigCenterType = errors.New("invalid ConfigCenterType")
Functions ¶
This section is empty.
Types ¶
type ConfigCenterType ¶
type ConfigCenterType uint8
api:enum
const ( CONFIG_CENTER_TYPE_UNKNOWN ConfigCenterType = iota CONFIG_CENTER_TYPE__NACOS // Nacos CONFIG_CENTER_TYPE__APOLLO // Apollo CONFIG_CENTER_TYPE__ETCD // Etcd )
func ParseConfigCenterTypeFromLabelString ¶
func ParseConfigCenterTypeFromLabelString(s string) (ConfigCenterType, error)
func ParseConfigCenterTypeFromString ¶
func ParseConfigCenterTypeFromString(s string) (ConfigCenterType, error)
func (ConfigCenterType) EnumType ¶
func (ConfigCenterType) EnumType() string
func (ConfigCenterType) Enums ¶
func (ConfigCenterType) Enums() map[int][]string
func (ConfigCenterType) Label ¶
func (v ConfigCenterType) Label() string
func (ConfigCenterType) MarshalText ¶
func (v ConfigCenterType) MarshalText() ([]byte, error)
func (ConfigCenterType) String ¶
func (v ConfigCenterType) String() string
func (ConfigCenterType) StringEnums ¶
func (v ConfigCenterType) StringEnums() (result []string)
func (*ConfigCenterType) UnmarshalText ¶
func (v *ConfigCenterType) UnmarshalText(data []byte) (err error)
func (*ConfigCenterType) WriteAnswer ¶
func (v *ConfigCenterType) WriteAnswer(field string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.