enum

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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