Documentation ¶
Index ¶
- Variables
- func Close()
- func Load() error
- func LoadClient(m *types.Client) error
- func LoadClients() error
- func LoadProduct(m *modbus.Product) error
- func LoadProducts() error
- func LoadSerial(m *types.Serial) error
- func LoadSerials() error
- func LoadServer(m *types.Server) error
- func LoadServers() error
- func Offline(pid, id string)
- func Online(pid, id string)
- type Client
- func (client *Client) Close() error
- func (l *Client) Online() bool
- func (client *Client) Open() error
- func (l *Client) Pipe(pipe io.ReadWriteCloser)
- func (l *Client) Read(data []byte) (int, error)
- func (client *Client) Retry()
- func (l *Client) Running() bool
- func (l *Client) Write(data []byte) (int, error)
- type Link
- type Product
- type Serial
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var Products lib.Map[Product]
Functions ¶
func LoadClient ¶
func LoadClients ¶
func LoadClients() error
func LoadProduct ¶
func LoadProducts ¶
func LoadProducts() error
func LoadSerial ¶
func LoadSerials ¶
func LoadSerials() error
func LoadServer ¶
func LoadServers ¶
func LoadServers() error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 网络链接
func (*Client) Pipe ¶
func (l *Client) Pipe(pipe io.ReadWriteCloser)
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
Link 网络连接
func (*Link) Pipe ¶
func (l *Link) Pipe(pipe io.ReadWriteCloser)
type Product ¶
func GetProduct ¶
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
Serial 串口
func (*Serial) Pipe ¶
func (l *Serial) Pipe(pipe io.ReadWriteCloser)
Click to show internal directories.
Click to hide internal directories.