owl

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const OwlInterface = "awdl0"

Variables

This section is empty.

Functions

func GetOwlInterface

func GetOwlInterface() net.Interface

func GetOwlInterfaceAddr

func GetOwlInterfaceAddr() string

func Kill

func Kill() error

Kill Owl

func Setup

func Setup(wifiInterface string) error

Setup the Wifi interface and start OWL

func SubscribeToErrors

func SubscribeToErrors() chan OwlError

SubscribeToErrors Subscribe to any error events like Owl exited with non-zero code

func SubscribeToLogs

func SubscribeToLogs() *chan string

SubscribeToLogs allows you read access to OWL logs

func UnsubscribeFromLogs

func UnsubscribeFromLogs(receiver *chan string)

func WaitUntilOwlReady

func WaitUntilOwlReady()

WaitUntilOwlReady Waits until Owl is ready to access the network

Types

type OwlError

type OwlError struct {
	ErrorType OwlErrorType
	Logs      []string
}

type OwlErrorType

type OwlErrorType string
const InaccessibleInterface OwlErrorType = "InaccessibleInterface"
const Unknown OwlErrorType = "Unknown"
const UnknownInterface OwlErrorType = "UnknownInterface"

Jump to

Keyboard shortcuts

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