github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/octsdb/text.go (about)

     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  
     5  package main
     6  
     7  type textDumper struct{}
     8  
     9  func newTextDumper() OpenTSDBConn {
    10  	return textDumper{}
    11  }
    12  
    13  func (t textDumper) Put(d *DataPoint) error {
    14  	print(d.String())
    15  	return nil
    16  }