github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/influxlib/config.go (about)

     1  // Copyright (c) 2018 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 influxlib
     6  
     7  // Connection type.
     8  const (
     9  	HTTP = "HTTP"
    10  	UDP  = "UDP"
    11  )
    12  
    13  // InfluxConfig is a configuration struct for influxlib.
    14  type InfluxConfig struct {
    15  	Hostname        string
    16  	Port            uint16
    17  	Protocol        string
    18  	Database        string
    19  	RetentionPolicy string
    20  }