Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a struct that holds the connection to the server
func NewClient ¶
NewClient creates a new client with connection management and returns a pointer to it and an error
func (*Client) CheckAndReconnect ¶
CheckAndReconnect checks connection health and reconnects if necessary
func (*Client) SendCommands ¶
SendCommands sends a list of commands to the server
type Config ¶
type Config struct {
Address string // The server address
SecureConnection bool // True for secure (HTTPS), false for insecure (HTTP)
CertFile string // Optional path to the TLS cert file for secure connections
Timeout int // Timeout in seconds for the connection
}
Config holds configuration for the client connection.
Click to show internal directories.
Click to hide internal directories.