sync

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	Send(*pb.Op) error
	Wait() error
}

type Synchronizer

type Synchronizer interface {
	Publish(addr string, fn func(c Conn)) error
	Subscribe(addr string, fn func(*pb.Op)) error
}

type Websocket

type Websocket struct {
	// contains filtered or unexported fields
}

func NewWebsocket

func NewWebsocket() *Websocket

func (*Websocket) Publish

func (ws *Websocket) Publish(addr string, fn func(Conn)) error

func (*Websocket) Subscribe

func (ws *Websocket) Subscribe(addr string, fn func(*pb.Op)) error

type WsConn

type WsConn struct {
	// contains filtered or unexported fields
}

func (*WsConn) Send

func (w *WsConn) Send(op *pb.Op) error

func (*WsConn) Wait

func (w *WsConn) Wait() error

Jump to

Keyboard shortcuts

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