httpclient

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolName = "http_client"

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequest added in v1.0.0

type HttpRequest struct {
	Api    string            `json:"api"`
	Method string            `json:"method"`
	Header map[string]string `json:"header"`
	Body   string            `json:"body"`
}

type HttpResponse added in v1.0.0

type HttpResponse struct {
	HttpRequest
	StatusCode int `json:"statusCode"`
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) Connector

func (p *Plugin) Connector(deviceSn string) (connector plugin.Connector, err error)

Connector 此协议不支持获取连接器

func (*Plugin) Destroy

func (p *Plugin) Destroy() error

func (*Plugin) Initialize

func (p *Plugin) Initialize(logger *zap.Logger, c config.Config, ls *lua.LState)

type TimerParam added in v1.0.0

type TimerParam struct {
	Auth string `json:"auth"` //认证信息
}

Jump to

Keyboard shortcuts

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