wol

package
v0.0.0-...-c83b0c2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 5 Imported by: 16

Documentation

Index

Constants

View Source
const (
	Major = 2
	Minor = 0
	Patch = 2

	Version = "2.0.2"
)

WARNING: Auto generated version file. Do not edit this file by hand. WARNING: go get github.com/sabhiram/gover to manage this file. Version: 2.0.2

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