Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtocolID = protocol.ID("/liblora-bridge/0.0.1")
ProtocolID is the protocol ID of the liblora bridge
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge allows authorized peers to open a stream and read/write data through the LoRa bridge
func NewBridge ¶
func NewBridge(ctx context.Context, wg *sync.WaitGroup, logger *zap.Logger, serial Serial, opt Opts) (*Bridge, error)
NewBridge returns an initialized bridge, suitable for use a LibP2P protocol
func (*Bridge) StreamHandler ¶
StreamHandler is used to open a bi-directional stream.
Click to show internal directories.
Click to hide internal directories.