Documentation
¶
Overview ¶
Package proxy implements the Modbus caching proxy.
Index ¶
- type Proxy
- func (p *Proxy) HandleRequest(ctx context.Context, req *modbus.Request) ([]byte, error)
- func (p *Proxy) HealthReport() (string, map[string]any, error)
- func (p *Proxy) HealthStatus() (string, map[string]any)
- func (p *Proxy) Healthy() error
- func (p *Proxy) Run(ctx context.Context) error
- func (p *Proxy) Shutdown(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a caching Modbus proxy server.
func (*Proxy) HandleRequest ¶
HandleRequest implements modbus.Handler interface.
func (*Proxy) HealthReport ¶ added in v1.3.0
HealthReport returns reliability diagnostics and availability from one snapshot.
func (*Proxy) HealthStatus ¶ added in v1.3.0
HealthStatus returns optional upstream reliability diagnostics.
Click to show internal directories.
Click to hide internal directories.