wol

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MACAddress

type MACAddress [6]byte

MACAddress represents a 6 byte network mac address.

type MagicPacket

type MagicPacket struct {
	// contains filtered or unexported fields
}

MagicPacket is constituted of 6 bytes of 0xFF followed by 16-groups of the destination MAC address.

func New

func New(mac string) (*MagicPacket, error)

New returns a magic packet based on a mac address string.

func (*MagicPacket) Marshal

func (mp *MagicPacket) Marshal() ([]byte, error)

Marshal serializes the magic packet structure into a 102 byte slice.

Jump to

Keyboard shortcuts

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