Documentation
¶
Index ¶
- type Option
- type Payload
- type Transfer
- func (x *Transfer) Get(measurement string) (result map[string]interface{}, err error)
- func (x *Transfer) Publish(ctx context.Context, measurement string, payload Payload) (err error)
- func (x *Transfer) Remove(key string) (err error)
- func (x *Transfer) Set(measurement string, option Option) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct {
// 标签
Tags map[string]string `json:"tags"`
// 字段
Fields map[string]interface{} `json:"fields"`
// 时间
Time time.Time `json:"time"`
}
Payload 载荷
Click to show internal directories.
Click to hide internal directories.