text.go 331 B

1234567891011121314151617
  1. // Copyright (c) 2016 Arista Networks, Inc.
  2. // Use of this source code is governed by the Apache License 2.0
  3. // that can be found in the COPYING file.
  4. package main
  5. type textDumper struct{}
  6. func newTextDumper() OpenTSDBConn {
  7. return textDumper{}
  8. }
  9. func (t textDumper) Put(d *DataPoint) error {
  10. print(d.String())
  11. return nil
  12. }