Fix struct alignment to avoid wasting space

Reduces size from 95 to 87.
pull/8645/head
Jason Wilder 2017-07-26 17:37:26 -06:00
parent f541cff2b2
commit e1ec73d08f
2 changed files with 6 additions and 6 deletions

View File

@ -22,13 +22,13 @@ type FloatPoint struct {
Tags Tags
Time int64
Nil bool
Value float64
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *FloatPoint) name() string { return v.Name }
@ -233,13 +233,13 @@ type IntegerPoint struct {
Tags Tags
Time int64
Nil bool
Value int64
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *IntegerPoint) name() string { return v.Name }
@ -444,13 +444,13 @@ type UnsignedPoint struct {
Tags Tags
Time int64
Nil bool
Value uint64
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *UnsignedPoint) name() string { return v.Name }
@ -653,13 +653,13 @@ type StringPoint struct {
Tags Tags
Time int64
Nil bool
Value string
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *StringPoint) name() string { return v.Name }
@ -864,13 +864,13 @@ type BooleanPoint struct {
Tags Tags
Time int64
Nil bool
Value bool
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *BooleanPoint) name() string { return v.Name }

View File

@ -18,13 +18,13 @@ type {{.Name}}Point struct {
Tags Tags
Time int64
Nil bool
Value {{.Type}}
Aux []interface{}
// 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.
Aggregated uint32
Nil bool
}
func (v *{{.Name}}Point) name() string { return v.Name }