cluster

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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 New

func New(fish *fish.Fish, join []string, ca_path, cert_path, key_path string) (*Cluster, error)

func (*Cluster) NewClient

func (c *Cluster) NewClient(host, channel string) *ClusterClient

func (*Cluster) Stop

func (c *Cluster) Stop()

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL