Documentation
¶
Index ¶
- Variables
- type Enabled
- func (x Enabled) Enum() *Enabled
- func (x Enabled) IsEnabled(defaultValue bool) bool
- func (x Enabled) MarshalJSON() ([]byte, error)
- func (x Enabled) MarshalProtoJSON(s *json.MarshalState)
- func (x Enabled) MarshalProtoText() string
- func (x Enabled) MarshalText() ([]byte, error)
- func (x Enabled) Merge(y Enabled) Enabled
- func (x Enabled) String() string
- func (x *Enabled) UnmarshalJSON(b []byte) error
- func (x *Enabled) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *Enabled) UnmarshalText(b []byte) error
- func (x Enabled) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Enabled_name = map[int32]string{ 0: "DEFAULT", 1: "ENABLE", 2: "DISABLE", } Enabled_value = map[string]int32{ "DEFAULT": 0, "ENABLE": 1, "DISABLE": 2, } )
Enum value maps for Enabled.
Functions ¶
This section is empty.
Types ¶
type Enabled ¶
type Enabled int32
Enabled is a three-way boolean: default, enable, disable.
func (Enabled) IsEnabled ¶
IsEnabled returns whether the option is enabled, given the default value.
func (Enabled) MarshalJSON ¶
MarshalJSON marshals the Enabled to JSON.
func (Enabled) MarshalProtoJSON ¶
func (x Enabled) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Enabled to JSON.
func (Enabled) MarshalProtoText ¶
func (Enabled) MarshalText ¶
MarshalText marshals the Enabled to text.
func (*Enabled) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Enabled from JSON.
func (*Enabled) UnmarshalProtoJSON ¶
func (x *Enabled) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Enabled from JSON.
func (*Enabled) UnmarshalText ¶
UnmarshalText unmarshals the Enabled from text.
Click to show internal directories.
Click to hide internal directories.