fritzbox

package
v0.0.0-...-5b66776 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonLinkProperties

type CommonLinkProperties struct {
	NewWANAccessType              WANAccessType      `xml:"NewWANAccessType"`
	NewLayer1UpstreamMaxBitRate   uint               `xml:"NewLayer1UpstreamMaxBitRate"`
	NewLayer1DownstreamMaxBitRate uint               `xml:"NewLayer1DownstreamMaxBitRate"`
	NewPhysicalLinkStatus         PhysicalLinkStatus `xml:"NewPhysicalLinkStatus"`
}

type Fritzbox

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

Fritzbox is an HTTP fritzbox for communicating with FRITZ!Box routers via TR-064 protocol.

func New

func New(ctx context.Context, digestAuthClient DigestAuthClient, url string) Fritzbox

func (Fritzbox) GetCommonLinkProperties

func (f Fritzbox) GetCommonLinkProperties() (*CommonLinkProperties, error)

func (Fritzbox) GetTotalBytesReceived

func (f Fritzbox) GetTotalBytesReceived() (uint, error)

func (Fritzbox) GetTotalBytesSent

func (f Fritzbox) GetTotalBytesSent() (uint, error)

func (Fritzbox) GetTotalPacketsReceived

func (f Fritzbox) GetTotalPacketsReceived() (uint, error)

func (Fritzbox) GetTotalPacketsSent

func (f Fritzbox) GetTotalPacketsSent() (uint, error)

type PhysicalLinkStatus

type PhysicalLinkStatus string
const (
	PhysicalLinkStatusUnavailable  PhysicalLinkStatus = "Unavailable"
	PhysicalLinkStatusDown         PhysicalLinkStatus = "Down"
	PhysicalLinkStatusInitializing PhysicalLinkStatus = "Initializing"
	PhysicalLinkStatusUp           PhysicalLinkStatus = "Up"
)

func (PhysicalLinkStatus) String

func (p PhysicalLinkStatus) String() string

type TotalBytesReceived

type TotalBytesReceived struct {
	NewTotalBytesReceived uint `xml:"NewTotalBytesReceived"`
}

type TotalBytesSent

type TotalBytesSent struct {
	NewTotalBytesSent uint `xml:"NewTotalBytesSent"`
}

type TotalPacketsReceived

type TotalPacketsReceived struct {
	NewTotalPacketsReceived uint `xml:"NewTotalPacketsReceived"`
}

type TotalPacketsSent

type TotalPacketsSent struct {
	NewTotalPacketsSent uint `xml:"NewTotalPacketsSent"`
}

type WANAccessType

type WANAccessType string
const (
	WANAccessTypeDSL         WANAccessType = "DSL"
	WANAccessTypeEthernet    WANAccessType = "Ethernet"
	WANAccessTypeXAVMDEFiber WANAccessType = "X_AVM-DE_Fiber"
	WANAccessTypeXAVMDEUMTS  WANAccessType = "X_AVM-DE_UMTS"
	WANAccessTypeXAVMDECable WANAccessType = "X_AVM-DE_Cable"
	WANAccessTypeXAVMDELTE   WANAccessType = "X_AVM-DE_LTE"
)

func (WANAccessType) String

func (w WANAccessType) String() string

Jump to

Keyboard shortcuts

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