Fix struct alignment to avoid wasting space
Reduces size from 95 to 87.pull/8645/head
parent
f541cff2b2
commit
e1ec73d08f
|
@ -22,13 +22,13 @@ type FloatPoint struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value float64
|
Value float64
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *FloatPoint) name() string { return v.Name }
|
func (v *FloatPoint) name() string { return v.Name }
|
||||||
|
@ -233,13 +233,13 @@ type IntegerPoint struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value int64
|
Value int64
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *IntegerPoint) name() string { return v.Name }
|
func (v *IntegerPoint) name() string { return v.Name }
|
||||||
|
@ -444,13 +444,13 @@ type UnsignedPoint struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value uint64
|
Value uint64
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *UnsignedPoint) name() string { return v.Name }
|
func (v *UnsignedPoint) name() string { return v.Name }
|
||||||
|
@ -653,13 +653,13 @@ type StringPoint struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value string
|
Value string
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *StringPoint) name() string { return v.Name }
|
func (v *StringPoint) name() string { return v.Name }
|
||||||
|
@ -864,13 +864,13 @@ type BooleanPoint struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value bool
|
Value bool
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *BooleanPoint) name() string { return v.Name }
|
func (v *BooleanPoint) name() string { return v.Name }
|
||||||
|
|
|
@ -18,13 +18,13 @@ type {{.Name}}Point struct {
|
||||||
Tags Tags
|
Tags Tags
|
||||||
|
|
||||||
Time int64
|
Time int64
|
||||||
Nil bool
|
|
||||||
Value {{.Type}}
|
Value {{.Type}}
|
||||||
Aux []interface{}
|
Aux []interface{}
|
||||||
|
|
||||||
// Total number of points that were combined into this point from an aggregate.
|
// Total number of points that were combined into this point from an aggregate.
|
||||||
// If this is zero, the point is not the result of an aggregate function.
|
// If this is zero, the point is not the result of an aggregate function.
|
||||||
Aggregated uint32
|
Aggregated uint32
|
||||||
|
Nil bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *{{.Name}}Point) name() string { return v.Name }
|
func (v *{{.Name}}Point) name() string { return v.Name }
|
||||||
|
|
Loading…
Reference in New Issue