You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal:
This is related to the suggestion in #69.
If InfluxDBClient.Point was changed to be a struct, the usability of it could be improved.
The properties could be made public. This would be a simpler way to modify the values in the point than using the add... methods, which don't do anything other than silently ignore being passed a nil key.
The existing public init can be updated to have parameters with default values for all the properties of the struct.
Public properties allow separating the creation of the point from setting the values. It's not always possible to have all the values at the same time the point is created.
Proposal:
This is related to the suggestion in #69.
If
InfluxDBClient.Point
was changed to be a struct, the usability of it could be improved.The properties could be made public. This would be a simpler way to modify the values in the point than using the
add...
methods, which don't do anything other than silently ignore being passed anil
key.The existing public init can be updated to have parameters with default values for all the properties of the struct.
Current behavior:
Example from the readme
Desired behavior:
Public properties allow separating the creation of the point from setting the values. It's not always possible to have all the values at the same time the point is created.
Public init showing all the properties available to be set on the type though the one initializer instead of needing to chain function calls.
The text was updated successfully, but these errors were encountered: