Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) NewClient ¶
func (c *Cluster) NewClient(host, channel string) *ClusterClient
type ClusterClient ¶
type ClusterClient struct {
// contains filtered or unexported fields
}
func (*ClusterClient) Connect ¶
func (conn *ClusterClient) Connect() *websocket.Conn
func (*ClusterClient) Stop ¶
func (conn *ClusterClient) Stop()
Close will send close message and shutdown websocket connection
func (*ClusterClient) Write ¶
func (conn *ClusterClient) Write(payload any) error
Write data to the websocket server
Click to show internal directories.
Click to hide internal directories.