networkestop

package module
v0.0.0-...-0f15d47 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

networkestop

network checking estop module for viam

sample config

{
   "server" : "8.8.8.8",
   "lookup" : "www.viam.com.",
   "stop" :   ["myBase"]
}

to compile for arm64

env GOOS=linux GOARCH=arm64 make module
viam module upload --platform "linux/arm64" --version <FILL ME IN> module.tar.gz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DnsModel = family.WithModel("dns")

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     string
	Lookup     string
	Stop       []string
	IntervalMS int `json:"interval_ms"`
	TimeoutMS  int `json:"timeout_ms"`
}

func (*Config) Validate

func (cfg *Config) Validate(path string) ([]string, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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