Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AcceptClient(logger *slog.Logger, client state.ClientIdentifier)
- func (c *Client) AcceptClientWithToken(logger *slog.Logger, client state.ClientIdentifier, username string)
- func (c *Client) Connect() error
- func (c *Client) DenyClient(logger *slog.Logger, client state.ClientIdentifier, reason string)
- func (c *Client) SendCommand(cmd string) (string, error)
- func (c *Client) SendCommandf(format string, a ...any) (string, error)
- func (c *Client) Shutdown()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AcceptClient ¶ added in v1.8.0
func (c *Client) AcceptClient(logger *slog.Logger, client state.ClientIdentifier)
func (*Client) AcceptClientWithToken ¶ added in v1.8.0
func (*Client) DenyClient ¶ added in v1.8.0
func (*Client) SendCommand ¶ added in v1.0.0
SendCommand passes command to a given connection (adds logging and EOL character) and returns the response.
func (*Client) SendCommandf ¶ added in v1.6.0
SendCommandf passes command to a given connection (adds logging and EOL character) and returns the response.
Click to show internal directories.
Click to hide internal directories.