Documentation ¶
Index ¶
- type BadRequestCode
- type InfluxDBV2Listener
- func (h *InfluxDBV2Listener) Description() string
- func (h *InfluxDBV2Listener) Gather(_ context.Context, _ cua.Accumulator) error
- func (h *InfluxDBV2Listener) Init() error
- func (h *InfluxDBV2Listener) SampleConfig() string
- func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *InfluxDBV2Listener) Start(ctx context.Context, acc cua.Accumulator) error
- func (h *InfluxDBV2Listener) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequestCode ¶
type BadRequestCode string
The BadRequestCode constants keep standard error messages see: https://v2.docs.influxdata.com/v2.0/api/#operation/PostWrite
const ( InternalError BadRequestCode = "internal error" Invalid BadRequestCode = "invalid" )
type InfluxDBV2Listener ¶
type InfluxDBV2Listener struct { ServiceAddress string `toml:"service_address"` tlsint.ServerConfig MaxBodySize internal.Size `toml:"max_body_size"` Token string `toml:"token"` BucketTag string `toml:"bucket_tag"` Log cua.Logger `toml:"-"` // contains filtered or unexported fields }
func (*InfluxDBV2Listener) Description ¶
func (h *InfluxDBV2Listener) Description() string
func (*InfluxDBV2Listener) Gather ¶
func (h *InfluxDBV2Listener) Gather(_ context.Context, _ cua.Accumulator) error
func (*InfluxDBV2Listener) Init ¶
func (h *InfluxDBV2Listener) Init() error
func (*InfluxDBV2Listener) SampleConfig ¶
func (h *InfluxDBV2Listener) SampleConfig() string
func (*InfluxDBV2Listener) ServeHTTP ¶
func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*InfluxDBV2Listener) Start ¶
func (h *InfluxDBV2Listener) Start(ctx context.Context, acc cua.Accumulator) error
Start starts the InfluxDB listener service.
Click to show internal directories.
Click to hide internal directories.