airdrop

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWifiInterface = "wlan1"

Variables

This section is empty.

Functions

func Config

func Config(config air.Config)

Config the current GoDrop setup

func Init

func Init() error

Init everything required. BLE, OWL, WebServer etc.

func OnAsk

func OnAsk(callback func(request air.Request) bool)

OnAsk gives you the option to accept or decline requests. If you don't define a callback, GoDrop will always decline requests

func OnFiles

func OnFiles(callback func(request air.Request, files []*cpio.File))

OnFiles will be called if GoDrop received ("AirDropped") files. air.Request shows you information about the sender. []*cpio.File contains the actual files.

func StartDiscover

func StartDiscover(onReceiverFound func(receiver air.Receiver)) error

func StartReceiving

func StartReceiving() error

StartReceiving starts the listening process for incoming files. OnAsk and OnFiles need to be called before StartReceiving

Types

This section is empty.

Jump to

Keyboard shortcuts

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