influxdbv2

package
v0.12.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建service_http驱动工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Client

type Client struct {
	influxdb2.Client
	api.WriteAPI
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Config) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) ID

func (c *Client) ID() string

func (*Client) Write

func (c *Client) Write(point monitor_entry.IPoint) error

type Config

type Config struct {
	Scopes []string `json:"scopes" label:"作用域"`
	Url    string   `json:"url"`
	Org    string   `json:"org"`
	Bucket string   `json:"bucket"`
	Token  string   `json:"token"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL