homewire

package module
v0.0.0-...-8886596 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 15 Imported by: 0

README

Homewire

The core component library for Homewire app, a cross-platform, local-first P2P file and message sharing app.

This is a work in progress

Building

Just build using your Go compiler.

$ go build

Running

Check out HomewireApp/homewire-desktop for the desktop client that runs Homewire.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Homewire

type Homewire struct {
	Context *ctx.Context
	// contains filtered or unexported fields
}

func Init

func Init() (*Homewire, error)

Initializes homewire with the default options

func InitWithOptions

func InitWithOptions(opts options.Options) (*Homewire, error)

func (*Homewire) CreateNewWire

func (hw *Homewire) CreateNewWire(name string) (*wire.Wire, error)

func (*Homewire) Destroy

func (wm *Homewire) Destroy()

func (*Homewire) ListWires

func (hw *Homewire) ListWires() []*wire.Wire

func (*Homewire) OnWireFound

func (hw *Homewire) OnWireFound(handler OnWireFoundHandler)

type OnWireFoundHandler

type OnWireFoundHandler func(*wire.Wire)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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