hitron_coda

所属分类:Modem编程
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-07-05 18:06:30
上 传 者sh-1993
说明:  Hitron CODA-4680电缆调制解调器路由器(可能还有其他!)的Go客户端,
(A Go client for the Hitron CODA-4680 Cable Modem Router (and possibly others!),)

文件列表:
.golangci.yml (1352, 2023-12-14)
LICENSE (1071, 2023-12-14)
Makefile (2952, 2023-12-14)
admin.go (916, 2023-12-14)
admin_test.go (529, 2023-12-14)
apilist.yaml (1195, 2023-12-14)
cm_test.go (7982, 2023-12-14)
cm_types.go (15437, 2023-12-14)
cm_types_test.go (2518, 2023-12-14)
cmd/ (0, 2023-12-14)
cmd/hitron/ (0, 2023-12-14)
cmd/hitron/cmd_cm.go (1378, 2023-12-14)
cmd/hitron/cmd_router.go (1168, 2023-12-14)
cmd/hitron/log.go (944, 2023-12-14)
cmd/hitron/main.go (2388, 2023-12-14)
go.mod (355, 2023-12-14)
go.sum (1370, 2023-12-14)
hitron.go (5313, 2023-12-14)
hitron_test.go (2483, 2023-12-14)
internal/ (0, 2023-12-14)
internal/version/ (0, 2023-12-14)
internal/version/version.go (210, 2023-12-14)
login.go (1634, 2023-12-14)
login_test.go (3043, 2023-12-14)
methods.go (5878, 2023-12-14)
methods.go.tmpl (394, 2023-12-14)
misc_test.go (4454, 2023-12-14)
misc_types.go (4582, 2023-12-14)
router_test.go (13026, 2023-12-14)
router_types.go (15946, 2023-12-14)
wifi_methods.go (339, 2023-12-14)
... ...

![Build](https://github.com/hairyhenderson/hitron_coda/workflows/Build/badge.svg) # Hitron CODA-4x8x Client A Go client for the [Hitron CODA-4x8x](http://hitron-americas.com/products/service-providers/coda-4680-cable-modem-router/) DOCSIS 3.1 cable modem/router series. This is tested on a Hitron CODA-4680 with firmware `7.1.1.2.2b9`, untested on other models and releases. The goal is to be able to perform the same actions through this client that are available in the web UI that ships with the device. ## Status This project is in active development, and not all APIs are supported yet. The code is generated based on [`apilist.yaml`](./apilist.yaml), by running `go generate`. ## Usage ```go host := "192.168.0.1" username := "cusadmin" password := "mypassword" // Instantiate a new *CableModem cm, _ := New(host, username, password) ctx := context.Background() // Now login _ = cm.Login(ctx) // Now that we're logged in we can call APIs info, _ := cm.RouterSysInfo(ctx) fmt.Printf("Private LAN IP: %s\n", info.PrivLanIP) // Output: Private LAN IP: 192.168.0.1 ``` ## License [The MIT License](http://opensource.org/licenses/MIT) Copyright (c) 2020-2021 Dave Henderson

近期下载者

相关文件


收藏者