Documentation ¶
Index ¶
- Constants
- func GetOwlInterface() net.Interface
- func GetOwlInterfaceAddr() string
- func Kill() error
- func Setup(wifiInterface string) error
- func SubscribeToErrors() chan OwlError
- func SubscribeToLogs() *chan string
- func UnsubscribeFromLogs(receiver *chan string)
- func WaitUntilOwlReady()
- type OwlError
- type OwlErrorType
Constants ¶
View Source
const OwlInterface = "awdl0"
Variables ¶
This section is empty.
Functions ¶
func GetOwlInterface ¶
func GetOwlInterfaceAddr ¶
func GetOwlInterfaceAddr() string
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"
Click to show internal directories.
Click to hide internal directories.