Documentation
¶
Index ¶
- type Config
- type Writer
- func (Writer) CaddyModule() caddy.ModuleInfo
- func (s *Writer) Cleanup() error
- func (s *Writer) OpenWriter() (io.WriteCloser, error)
- func (s *Writer) Provision(ctx caddy.Context) error
- func (s *Writer) String() string
- func (s *Writer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (s *Writer) Validate() error
- func (s *Writer) WriterKey() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string `json:"addr"`
Token string `json:"token"`
Organization string `json:"organization"`
Bucket string `json:"bucket"`
}
Config is the configuration for the influxLogWriter
type Writer ¶
Writer is a influxdb client to write time series data
func (Writer) CaddyModule ¶
func (Writer) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information
func (*Writer) OpenWriter ¶
func (s *Writer) OpenWriter() (io.WriteCloser, error)
OpenWriter opens a new influxdb client with connection
func (*Writer) UnmarshalCaddyfile ¶
UnmarshalCaddyfile deserializes Caddyfile tokens into influxlog config
influxlog {
addr
token
organization
bucket
}
Click to show internal directories.
Click to hide internal directories.