Documentation
¶
Overview ¶
Package mock provides a library, mocking Fritz!Box backend.
Example ¶
Start a new mock server.
package main
import (
"github.com/bpicode/fritzctl/mock"
)
func main() {
m := mock.New()
m.DeviceList = "path/to/devicelist.xml"
m.Start()
defer m.Close()
}
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fritz ¶
type Fritz struct {
LoginChallengeResponse string
LoginResponse string
DeviceList string
Logs string
LanDevices string
InetStats string
PhoneCalls string
SystemStatus string
Server *httptest.Server
}
Fritz represents the mock of the FB. codebeat:disable[TOO_MANY_IVARS]
func (*Fritz) UnstartedServer ¶
UnstartedServer sets up the routes and creates a server.
Click to show internal directories.
Click to hide internal directories.