Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClientNotAvailable = fmt.Errorf("could not dial Client") ErrClientInjector = fmt.Errorf("client could not create injector") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, wg *sync.WaitGroup, data any, peer net.TCPAddr, errs chan *slog.Record, settings *settings.Settings) (*Client, error)
New creates a new client that connects to the given peer. The given data is used to synchronize the local state with the remote one. The given errors channel is used to send log records. The given settings are used to control the behavior of the client.
func (*Client) AddExtHandler ¶
func (*Client) AddInjHandler ¶
func (*Client) ShutdownRemoteServer ¶
func (c *Client) ShutdownRemoteServer()
ShutdownRemoteServer requests to shut down the server.
Click to show internal directories.
Click to hide internal directories.