|
|
|
@ -37,43 +37,3 @@ type ConfigValue interface { |
|
|
|
GetType() ConfigType |
|
|
|
GetValue() interface{} |
|
|
|
} |
|
|
|
|
|
|
|
type BooleanValue struct { |
|
|
|
Name string |
|
|
|
Value bool |
|
|
|
} |
|
|
|
|
|
|
|
func (this BooleanValue) GetType() ConfigType { return BOOLEAN } |
|
|
|
func (this BooleanValue) GetValue() interface{} { return this.Value } |
|
|
|
|
|
|
|
type NullValue struct { |
|
|
|
Name string |
|
|
|
Value interface{} |
|
|
|
} |
|
|
|
|
|
|
|
func (this NullValue) GetType() ConfigType { return NULL } |
|
|
|
func (this NullValue) GetValue() interface{} { return nil } |
|
|
|
|
|
|
|
type IntegerValue struct { |
|
|
|
Name string |
|
|
|
Value int64 |
|
|
|
} |
|
|
|
|
|
|
|
func (this IntegerValue) GetType() ConfigType { return INTEGER } |
|
|
|
func (this IntegerValue) GetValue() interface{} { return this.Value } |
|
|
|
|
|
|
|
type FloatValue struct { |
|
|
|
Name string |
|
|
|
Value float64 |
|
|
|
} |
|
|
|
|
|
|
|
func (this FloatValue) GetType() ConfigType { return INTEGER } |
|
|
|
func (this FloatValue) GetValue() interface{} { return this.Value } |
|
|
|
|
|
|
|
type StringValue struct { |
|
|
|
Name string |
|
|
|
Value string |
|
|
|
} |
|
|
|
|
|
|
|
func (this StringValue) GetType() ConfigType { return STRING } |
|
|
|
func (this StringValue) GetValue() interface{} { return this.Value } |