common

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsLoginRequired

func CheckIsLoginRequired(httpResponseBody string) bool

func DoHttpRequestAndReadResponse

func DoHttpRequestAndReadResponse(args *types.GlobalOptions, httpMethod string, host string, requestUrl string, requestBody string) (string, error)

func DoUnauthenticatedHttpRequestAndReadResponse

func DoUnauthenticatedHttpRequestAndReadResponse(args *types.GlobalOptions, httpMethod string, requestUrl string, requestBody string) (string, error)

func Filter

func Filter[T any](ss []T, test func(T) bool) (ret []T)

func IsModel30x

func IsModel30x(nm types.NetgearModel) bool

func IsModel316

func IsModel316(nm types.NetgearModel) bool

func IsSupportedModel

func IsSupportedModel(modelName string) bool

func ParseFloat32

func ParseFloat32(text string) float32

func ParseInt32

func ParseInt32(text string) int32

func ReadTokenAndModel2GlobalOptions

func ReadTokenAndModel2GlobalOptions(args *types.GlobalOptions, host string) (types.NetgearModel, string, error)

func RequestPage

func RequestPage(args *types.GlobalOptions, host string, url string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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