Documentation
¶
Index ¶
- Constants
- Variables
- func AnyToValueString(ref interface{}, intSize int, dateFormat string) string
- func ArrayLength(i interface{}) int
- func CleanString(s string) string
- func GetIntFormatForPrintf(i interface{}) string
- func IsKnownStruct(ref interface{}, checkDepth bool) bool
- func IsNil(i interface{}) bool
- func IsTypeUnknown(fieldVo reflect.Value) bool
- func IsUnknownStruct(ref interface{}, checkDepth bool) bool
- func JoinStrings(value ...string) string
- func ParseDateTime(value string) (time.Time, string, error)
- func PointToName(ret string) string
- func PrintInt(s int, i interface{}) string
- func SetPrecision(num float64, precision int) float64
- func SizeOfArrayLength(ref interface{}) int
- func SizeOfInt(ref interface{}) int
- func TimeNowString() string
- func UnitValueType(unit string) string
- type Bool
- func (t Bool) MarshalJSON() ([]byte, error)
- func (t Bool) Match(comp bool) bool
- func (t *Bool) SetInteger(value int64) Bool
- func (t *Bool) SetString(value string) Bool
- func (t *Bool) SetValue(value bool) Bool
- func (t Bool) String() string
- func (t *Bool) UnmarshalJSON(data []byte) error
- func (t Bool) Value() bool
- type Count
- func (t Count) MarshalJSON() ([]byte, error)
- func (t Count) Match(comp int64) bool
- func (t *Count) SetString(value string) Count
- func (t *Count) SetValue(value int64) Count
- func (t Count) String() string
- func (t *Count) ToUnitValue() UnitValue
- func (t *Count) UnmarshalJSON(data []byte) error
- func (t Count) Value() int64
- type DataPoint
- func (t DataPoint) EndPoint() string
- func (t DataPoint) MarshalJSON() ([]byte, error)
- func (t DataPoint) PointId() PointId
- func (t *DataPoint) Set(endPoint string, pointId string) DataPoint
- func (t *DataPoint) SetEndPoint(endPoint string) DataPoint
- func (t *DataPoint) SetPointId(pointId string) DataPoint
- func (t DataPoint) Split() []string
- func (t DataPoint) String() string
- func (t *DataPoint) UnmarshalJSON(data []byte) error
- type DateTime
- func (dt *DateTime) GetDayEndTimestamp() string
- func (dt *DateTime) GetDayStartTimestamp() string
- func (dt *DateTime) GetRanges(count int, dur time.Duration, format string) []string
- func (dt DateTime) MarshalJSON() ([]byte, error)
- func (dt DateTime) Match(comp time.Time) bool
- func (dt DateTime) Original() string
- func (dt DateTime) PrintFull() string
- func (dt *DateTime) SetDateType(value string)
- func (dt *DateTime) SetDayEnd()
- func (dt *DateTime) SetDayStart()
- func (dt *DateTime) SetString(value string) DateTime
- func (dt *DateTime) SetValue(value time.Time) DateTime
- func (dt DateTime) String() string
- func (dt *DateTime) UnmarshalJSON(data []byte) error
- func (dt DateTime) Value() time.Time
- type Float
- func (t Float) MarshalJSON() ([]byte, error)
- func (t Float) Match(comp float64) bool
- func (t *Float) SetPrecision(precision int) Float
- func (t *Float) SetString(value string) Float
- func (t *Float) SetValue(value float64) Float
- func (t Float) String() string
- func (t *Float) ToUnitValue() UnitValue
- func (t *Float) UnmarshalJSON(data []byte) error
- func (t Float) Value() float64
- type Generic
- func (t Generic) MarshalJSON() ([]byte, error)
- func (t Generic) Match(comp float64) bool
- func (t *Generic) SetFloat(value float64) Generic
- func (t *Generic) SetInteger(value int64) Generic
- func (t *Generic) SetString(value string) Generic
- func (t Generic) String() string
- func (t *Generic) ToUnitValue() UnitValue
- func (t *Generic) UnmarshalJSON(data []byte) error
- func (t Generic) Value() float64
- type Integer
- func (t Integer) MarshalJSON() ([]byte, error)
- func (t Integer) Match(comp int64) bool
- func (t Integer) MatchString(comp string) bool
- func (t *Integer) SetString(value string) Integer
- func (t *Integer) SetValue(value int64) Integer
- func (t Integer) String() string
- func (t *Integer) ToUnitValue() UnitValue
- func (t *Integer) UnmarshalJSON(data []byte) error
- func (t Integer) Value() int64
- type PointId
- type PointIds
- type PsId
- type PsIds
- type PsKey
- func (t *PsKey) GetChannelId() string
- func (t *PsKey) GetDeviceCode() string
- func (t *PsKey) GetDeviceType() string
- func (t *PsKey) GetPsId() string
- func (t PsKey) MarshalJSON() ([]byte, error)
- func (t *PsKey) Match(comp string) bool
- func (t *PsKey) PsIdDeviceType() string
- func (t *PsKey) PsKey() string
- func (t *PsKey) SetValue(value string) PsKey
- func (t PsKey) String() string
- func (t *PsKey) UnmarshalJSON(data []byte) error
- func (t *PsKey) Value() string
- type PsKeys
- func (t *PsKeys) Join(sep string) string
- func (t *PsKeys) Length() int
- func (t PsKeys) MarshalJSON() ([]byte, error)
- func (t *PsKeys) Match(pskey PsKey) bool
- func (t *PsKeys) MatchPsIdDeviceType(psid string, deviceType string) PsKey
- func (t *PsKeys) MatchString(pskey string) bool
- func (t *PsKeys) PsIds() []string
- func (t *PsKeys) Set(values ...string) PsKeys
- func (t PsKeys) String() string
- func (t *PsKeys) Strings() []string
- func (t *PsKeys) UnmarshalJSON(data []byte) error
- type String
- type Time
- type UnitValue
- func (t *UnitValue) DeviceId() string
- func (t *UnitValue) IsBool() bool
- func (t *UnitValue) IsFloat() bool
- func (t *UnitValue) IsInt() bool
- func (t *UnitValue) IsNotZero() bool
- func (t *UnitValue) IsNumber() bool
- func (t *UnitValue) IsTypeDateTime() bool
- func (t *UnitValue) IsZero() bool
- func (t UnitValue) MarshalJSON() ([]byte, error)
- func (t *UnitValue) MatchBool(comp bool) bool
- func (t *UnitValue) MatchFloat(comp float64) bool
- func (t *UnitValue) MatchInt(comp int64) bool
- func (t *UnitValue) SetBool(value bool) UnitValue
- func (t *UnitValue) SetBoolString(value string) UnitValue
- func (t *UnitValue) SetDeviceId(deviceId string) UnitValue
- func (t *UnitValue) SetFloat(value float64) UnitValue
- func (t *UnitValue) SetInteger(value int64) UnitValue
- func (t *UnitValue) SetKey(key string) UnitValue
- func (t *UnitValue) SetPrecision(precision int) UnitValue
- func (t *UnitValue) SetString(value string) UnitValue
- func (t *UnitValue) SetType(Type string) UnitValue
- func (t *UnitValue) SetUnit(unit string) UnitValue
- func (t UnitValue) String() string
- func (t *UnitValue) Type() string
- func (t *UnitValue) Unit() string
- func (t *UnitValue) UnitValueFix() UnitValue
- func (t *UnitValue) UnmarshalJSON(data []byte) error
- func (t *UnitValue) Value() float64
- func (t *UnitValue) ValueBool() bool
- func (t *UnitValue) ValueFloat() float64
- func (t *UnitValue) ValueInt() int64
- func (t *UnitValue) ValueKey() string
- type UnitValues
- func (t *UnitValues) AddBool(key string, value ...bool) *UnitValues
- func (t *UnitValues) AddFloat(key string, unit string, Type string, value ...float64) *UnitValues
- func (t *UnitValues) AddInteger(key string, unit string, Type string, value ...int64) *UnitValues
- func (t *UnitValues) AddString(key string, unit string, Type string, value ...string) *UnitValues
- func (t *UnitValues) AddUnitValue(key string, uvs ...UnitValue) *UnitValues
- func (t *UnitValues) AddUnitValues(key string, uvs UnitValues) *UnitValues
- func (t *UnitValues) AppendBool(value ...bool) *UnitValues
- func (t *UnitValues) AppendFloat(unit string, Type string, value ...float64) *UnitValues
- func (t *UnitValues) AppendInteger(unit string, Type string, value ...int64) *UnitValues
- func (t *UnitValues) AppendString(unit string, Type string, value ...string) *UnitValues
- func (t *UnitValues) AppendUnitValue(uvs ...UnitValue) *UnitValues
- func (t *UnitValues) AppendUnitValues(uvs UnitValues) *UnitValues
- func (t *UnitValues) First() *UnitValue
- func (t *UnitValues) GetIndex(index int) *UnitValue
- func (t *UnitValues) GetKey(key string) *UnitValue
- func (t *UnitValues) GetUnit() string
- func (t *UnitValues) GetarrayValues() []*UnitValue
- func (t *UnitValues) GetmapValues() map[string]*UnitValue
- func (t *UnitValues) IsArray() bool
- func (t *UnitValues) IsInit() bool
- func (t *UnitValues) IsMap() bool
- func (t *UnitValues) Keys(loadOrder bool) []string
- func (t *UnitValues) Last() *UnitValue
- func (t *UnitValues) Length() int
- func (t *UnitValues) Range(loadOrder bool) []UnitValue
- func (t *UnitValues) Reset() *UnitValues
- func (t *UnitValues) SetDeviceId(deviceId string) *UnitValues
- func (t *UnitValues) SetPrecision(precision int)
- func (t *UnitValues) SetType(Type string) *UnitValues
- func (t *UnitValues) SetUnit(unit string) *UnitValues
- func (t UnitValues) String() string
- func (t *UnitValues) Type() string
- type Uuid
Constants ¶
const ( DateTimeFullLayout = time.RFC3339 DateTimeLayout = DateLayout + " " + TimeLayout DateTimeAltLayout = DateLayoutDay + "-" + TimeLayoutSecond DateHumanLayoutLayout = DateHumanLayout + " " + TimeLayout DateTimeLayoutZeroSeconds = DateLayout + " " + TimeLayoutZeroSeconds DateTimeLayoutSecond = DateLayoutDay + TimeLayoutSecond DateTimeLayoutMinute = DateLayoutDay + TimeLayoutMinute DateTimeLayoutHour = DateLayoutDay + TimeLayoutHour DateTimeLayoutDay = DateLayoutDay DateTimeLayoutMonth = DateLayoutMonth DateTimeLayoutYear = DateLayoutYear DateLayout = "2006-01-02" DateHumanLayout = "2006/01/02" DateHumanMonth = "2006/01" DateHumanYear = "2006" DateLayoutDay = "20060102" DateLayoutMonth = "200601" DateLayoutYear = "2006" TimeLayout = "15:04:05" TimeLayoutZeroSeconds = "15:04:00" TimeLayoutHourColon = "15:04" TimeLayoutSecond = "150405" TimeLayoutMinute = "1504" TimeLayoutHour = "15" DateTypeDay = "1" DateTypeMonth = "2" DateTypeYear = "3" DateTypeTotal = "4" )
const ( TypeBool = "Bool" TypeCount = "Count" TypeDateTime = "DateTime" TypeFloat = "Float" TypeInteger = "Integer" TypePointId = "PointId" TypePsKey = "PsKey" TypePsId = "PsId" TypeString = "String" TypeTime = "Time" TypeUnitValue = "UnitValue" TypeGeneric = "Generic" // Used for values that can flip-flop between strings, ints and floats. TypeArrayBool = "[]Bool" TypeArrayCount = "[]Count" TypeArrayDateTime = "[]DateTime" TypeArrayFloat = "[]Float" TypeArrayInteger = "[]Integer" TypeArrayPointId = "[]PointId" TypeArrayPsKey = "[]PsKey" TypeArrayPsId = "[]PsId" TypeArrayString = "[]String" TypeArrayTime = "[]Time" TypeArrayUnitValue = "[]UnitValue" TypeUnitValues = "UnitValues" TypeArrayGeneric = "[]Generic" )
const (
IgnoreLength = -1
)
const IsarrayValues = "array"
const LoadOrder = true
const Now = "now"
const SortOrder = false
Variables ¶
var DateLayoutMap = map[string]string{ "DateTimeFullLayout": DateTimeFullLayout, "DateTimeLayout": DateTimeLayout, "DateTimeAltLayout": DateTimeAltLayout, "DateHumanLayoutLayout": DateHumanLayoutLayout, "DateTimeLayoutZeroSeconds": DateTimeLayoutZeroSeconds, "DateTimeLayoutSecond": DateTimeLayoutSecond, "DateTimeLayoutMinute": DateTimeLayoutMinute, "DateTimeLayoutHour": DateTimeLayoutHour, "DateTimeLayoutDay": DateTimeLayoutDay, "DateTimeLayoutMonth": DateTimeLayoutMonth, "DateTimeLayoutYear": DateTimeLayoutYear, "DateLayout": DateLayout, "DateHumanLayout": DateHumanLayout, "DateLayoutDay": DateLayoutDay, "DateLayoutMonth": DateLayoutMonth, "DateLayoutYear": DateLayoutYear, "TimeLayout": TimeLayout, "TimeLayoutZeroSeconds": TimeLayoutZeroSeconds, "TimeLayoutHourColon": TimeLayoutHourColon, "TimeLayoutSecond": TimeLayoutSecond, "TimeLayoutMinute": TimeLayoutMinute, "TimeLayoutHour": TimeLayoutHour, }
var VarFalse = false
var VarTrue = true
Functions ¶
func AnyToValueString ¶
func ArrayLength ¶
func ArrayLength(i interface{}) int
func CleanString ¶
func GetIntFormatForPrintf ¶
func GetIntFormatForPrintf(i interface{}) string
func IsKnownStruct ¶
func IsTypeUnknown ¶
func IsUnknownStruct ¶
func JoinStrings ¶
func PointToName ¶
func SetPrecision ¶
func SizeOfArrayLength ¶
func SizeOfArrayLength(ref interface{}) int
func TimeNowString ¶
func TimeNowString() string
func UnitValueType ¶
Types ¶
type Bool ¶
type Bool struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetBoolString ¶
func SetBoolValue ¶
func (Bool) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Bool) SetInteger ¶
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type Count ¶
type Count struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetCountString ¶
func SetCountValue ¶
func (Count) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Count) ToUnitValue ¶
func (*Count) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type DataPoint ¶
type DataPoint struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func JoinDataPoint ¶
func SetDataPoint ¶
func (DataPoint) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*DataPoint) SetEndPoint ¶
func (*DataPoint) SetPointId ¶
func (*DataPoint) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type DateTime ¶
type DateTime struct { time.Time `json:"time,omitempty"` DateType string Error error `json:"-"` // contains filtered or unexported fields }
func NewDateTime ¶
func SetDateTimeString ¶
func SetDateTimeValue ¶
func (*DateTime) GetDayEndTimestamp ¶
func (*DateTime) GetDayStartTimestamp ¶
func (DateTime) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*DateTime) SetDateType ¶
func (*DateTime) SetDayStart ¶
func (dt *DateTime) SetDayStart()
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type Float ¶
type Float struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetFloatString ¶
func SetFloatValue ¶
func (Float) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Float) SetPrecision ¶
func (*Float) ToUnitValue ¶
func (*Float) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type Generic ¶
type Generic struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetGenericFloat ¶
func SetGenericInteger ¶
func SetGenericString ¶
func (Generic) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Generic) SetInteger ¶
func (*Generic) ToUnitValue ¶
func (*Generic) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type Integer ¶
type Integer struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetIntegerString ¶
func SetIntegerValue ¶
func (Integer) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (Integer) MatchString ¶
func (*Integer) ToUnitValue ¶
func (*Integer) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type PointId ¶
type PointId struct { Point string `json:"point"` PsKey PsKey `json:"ps_key"` Valid bool `json:"valid"` Error error `json:"-"` }
func SetPointIdString ¶
func (PointId) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*PointId) PointToName ¶
func (*PointId) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type PointIds ¶
type PointIds struct { PointIds []PointId `json:"points,omitempty"` Valid bool `json:"valid"` Error error `json:"-"` }
func SetPointIdsString ¶
func (PointIds) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*PointIds) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type PsId ¶
type PsId struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetPsIdString ¶
func SetPsIdValue ¶
func (PsId) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*PsId) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type PsKey ¶
type PsKey struct { PsId string `json:"ps_id"` DeviceType string `json:"device_type"` DeviceCode string `json:"device_code"` ChannelId string `json:"channel_id"` Valid bool `json:"-"` Error error `json:"-"` // contains filtered or unexported fields }
func SetPsKeyString ¶
func (*PsKey) GetChannelId ¶
func (*PsKey) GetDeviceCode ¶
func (*PsKey) GetDeviceType ¶
func (PsKey) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*PsKey) PsIdDeviceType ¶
func (*PsKey) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type PsKeys ¶
type PsKeys struct { PsKeys []PsKey `json:"ps_keys,omitempty"` Valid bool `json:"valid"` Error error `json:"-"` }
func SetPsKeysString ¶
func (PsKeys) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*PsKeys) MatchPsIdDeviceType ¶
func (*PsKeys) MatchString ¶
func (*PsKeys) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type String ¶
type String struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetStringValue ¶
func (String) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*String) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type Time ¶
type Time struct { time.Time `json:"time,omitempty"` Error error `json:"-"` // contains filtered or unexported fields }
func SetTimeString ¶
func SetTimeValue ¶
func (Time) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Time) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
type UnitValue ¶
type UnitValue struct { UnitValue string `json:"unit"` // Primary iSolarCloud entity. StringValue string `json:"value"` // Primary iSolarCloud entity. TypeValue string `json:"type_value"` Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetUnitValueBool ¶
func SetUnitValueInteger ¶
func (*UnitValue) IsTypeDateTime ¶
func (UnitValue) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*UnitValue) MatchFloat ¶
func (*UnitValue) SetBoolString ¶
func (*UnitValue) SetDeviceId ¶
func (*UnitValue) SetInteger ¶
func (*UnitValue) SetPrecision ¶
func (*UnitValue) UnitValueFix ¶
func (*UnitValue) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value
func (*UnitValue) ValueFloat ¶
type UnitValues ¶
type UnitValues struct { Unit string `json:"unit"` TypeValue string `json:"type_value"` // contains filtered or unexported fields }
func AnyToUnitValue ¶
func (*UnitValues) AddBool ¶
func (t *UnitValues) AddBool(key string, value ...bool) *UnitValues
func (*UnitValues) AddFloat ¶
func (t *UnitValues) AddFloat(key string, unit string, Type string, value ...float64) *UnitValues
func (*UnitValues) AddInteger ¶
func (t *UnitValues) AddInteger(key string, unit string, Type string, value ...int64) *UnitValues
func (*UnitValues) AddString ¶
func (t *UnitValues) AddString(key string, unit string, Type string, value ...string) *UnitValues
func (*UnitValues) AddUnitValue ¶
func (t *UnitValues) AddUnitValue(key string, uvs ...UnitValue) *UnitValues
func (*UnitValues) AddUnitValues ¶
func (t *UnitValues) AddUnitValues(key string, uvs UnitValues) *UnitValues
func (*UnitValues) AppendBool ¶
func (t *UnitValues) AppendBool(value ...bool) *UnitValues
func (*UnitValues) AppendFloat ¶
func (t *UnitValues) AppendFloat(unit string, Type string, value ...float64) *UnitValues
func (*UnitValues) AppendInteger ¶
func (t *UnitValues) AppendInteger(unit string, Type string, value ...int64) *UnitValues
func (*UnitValues) AppendString ¶
func (t *UnitValues) AppendString(unit string, Type string, value ...string) *UnitValues
func (*UnitValues) AppendUnitValue ¶
func (t *UnitValues) AppendUnitValue(uvs ...UnitValue) *UnitValues
func (*UnitValues) AppendUnitValues ¶
func (t *UnitValues) AppendUnitValues(uvs UnitValues) *UnitValues
func (*UnitValues) First ¶
func (t *UnitValues) First() *UnitValue
func (*UnitValues) GetIndex ¶
func (t *UnitValues) GetIndex(index int) *UnitValue
func (*UnitValues) GetKey ¶
func (t *UnitValues) GetKey(key string) *UnitValue
func (*UnitValues) GetUnit ¶
func (t *UnitValues) GetUnit() string
func (*UnitValues) GetarrayValues ¶
func (t *UnitValues) GetarrayValues() []*UnitValue
func (*UnitValues) GetmapValues ¶
func (t *UnitValues) GetmapValues() map[string]*UnitValue
func (*UnitValues) IsArray ¶
func (t *UnitValues) IsArray() bool
func (*UnitValues) IsInit ¶
func (t *UnitValues) IsInit() bool
func (*UnitValues) IsMap ¶
func (t *UnitValues) IsMap() bool
func (*UnitValues) Keys ¶
func (t *UnitValues) Keys(loadOrder bool) []string
func (*UnitValues) Last ¶
func (t *UnitValues) Last() *UnitValue
func (*UnitValues) Length ¶
func (t *UnitValues) Length() int
func (*UnitValues) Range ¶
func (t *UnitValues) Range(loadOrder bool) []UnitValue
func (*UnitValues) Reset ¶
func (t *UnitValues) Reset() *UnitValues
func (*UnitValues) SetDeviceId ¶
func (t *UnitValues) SetDeviceId(deviceId string) *UnitValues
func (*UnitValues) SetPrecision ¶
func (t *UnitValues) SetPrecision(precision int)
func (*UnitValues) SetType ¶
func (t *UnitValues) SetType(Type string) *UnitValues
func (*UnitValues) SetUnit ¶
func (t *UnitValues) SetUnit(unit string) *UnitValues
func (UnitValues) String ¶
func (t UnitValues) String() string
func (*UnitValues) Type ¶
func (t *UnitValues) Type() string
type Uuid ¶
type Uuid struct { Valid bool `json:"valid"` Error error `json:"-"` // contains filtered or unexported fields }
func SetUuidString ¶
func SetUuidValue ¶
func (Uuid) MarshalJSON ¶
MarshalJSON - Convert value to JSON
func (*Uuid) UnmarshalJSON ¶
UnmarshalJSON - Convert JSON to value