Documentation ¶
Index ¶
- func GetLastRecordedHeight(influx client.Client, database string) (int64, error)
- func NewBatch() (client.BatchPoints, error)
- func NewClient(addr, user, pass string) (client.Client, error)
- func NewPoint(name string, value interface{}) models.Point
- func NewPointFrom(p models.Point) *client.Point
- func ResetDatabase(influx client.Client, database string) error
- type PointList
- type WriteQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastRecordedHeight ¶
func NewBatch ¶
func NewBatch() (client.BatchPoints, error)
Types ¶
type PointList ¶
type PointList struct {
// contains filtered or unexported fields
}
func NewPointList ¶
func NewPointList() *PointList
type WriteQueue ¶
type WriteQueue struct {
// contains filtered or unexported fields
}
func NewWriteQueue ¶
func NewWriteQueue(ctx context.Context, influx client.Client) *WriteQueue
func (*WriteQueue) AddBatch ¶
func (i *WriteQueue) AddBatch(bp client.BatchPoints)
func (*WriteQueue) Close ¶
func (i *WriteQueue) Close()
Click to show internal directories.
Click to hide internal directories.