Documentation ¶
Index ¶
- func HttpGet(url string, queryBody string) string
- func HttpPost(url string, queryBody string) (string, error)
- func HttpPostFormDataWithHeader(url string, queryBody string, headers map[string]string) (string, error)
- func HttpPostWithHeader(url string, queryBody string, headers map[string]string) (string, error)
- func NewTlsConfig(sslPath string) *tls.Config
- func UploadFile(url string, headers map[string]string, bodyParams map[string]string, ...) ([]byte, error)
- type FileMonitorHelper
- type HttpHelper
- type InfluxDBHelper
- func (the *InfluxDBHelper) Close()
- func (the *InfluxDBHelper) GetClient() influxdb2.Client
- func (the *InfluxDBHelper) Initial()
- func (the *InfluxDBHelper) Query() map[string]time.Time
- func (the *InfluxDBHelper) QueryByOfflineGap(measurement string, offlineGap string) map[string]time.Time
- func (the *InfluxDBHelper) Write()
- type MqttHelper
- type UdpHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpPostWithHeader ¶
func NewTlsConfig ¶
Types ¶
type FileMonitorHelper ¶
type FileMonitorHelper struct { Directory string FilenameExtension string // contains filtered or unexported fields }
func FileMonitorInitial ¶
func FileMonitorInitial(Directory string, FilenameExtension string, cron string) *FileMonitorHelper
func (*FileMonitorHelper) Initial ¶
func (the *FileMonitorHelper) Initial()
func (*FileMonitorHelper) Subscribe ¶
func (the *FileMonitorHelper) Subscribe(task func())
type HttpHelper ¶
func (*HttpHelper) HttpGet ¶
func (the *HttpHelper) HttpGet(queryBody string) string
func (*HttpHelper) Initial ¶
func (the *HttpHelper) Initial()
type InfluxDBHelper ¶
type InfluxDBHelper struct { Url string Token string Bucket string Org string // contains filtered or unexported fields }
func (*InfluxDBHelper) Close ¶
func (the *InfluxDBHelper) Close()
func (*InfluxDBHelper) GetClient ¶
func (the *InfluxDBHelper) GetClient() influxdb2.Client
func (*InfluxDBHelper) Initial ¶
func (the *InfluxDBHelper) Initial()
func (*InfluxDBHelper) QueryByOfflineGap ¶
func (*InfluxDBHelper) Write ¶
func (the *InfluxDBHelper) Write()
type MqttHelper ¶
type MqttHelper struct { Host string Port int ClientId string UserName string Password string // contains filtered or unexported fields }
func MqttInitial ¶
func (*MqttHelper) Initial ¶
func (the *MqttHelper) Initial()
func (*MqttHelper) InitialWithSSL ¶
func (the *MqttHelper) InitialWithSSL(caPath string)
func (*MqttHelper) Publish ¶
func (the *MqttHelper) Publish(topic string, messageBytes []byte)
Click to show internal directories.
Click to hide internal directories.