webapi

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package webapi : WEB API

Package webapi : WEB API

Package webapi : WEB API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(p *WebAPI)

func Stop

func Stop()

Types

type PingReq added in v1.12.0

type PingReq struct {
	IP   string
	Size int
	TTL  int
}

type PingRes added in v1.12.0

type PingRes struct {
	Stat      int
	TimeStamp int64
	Time      int64
	Size      int
	SendTTL   int
	RecvTTL   int
	RecvSrc   string
	Loc       string
}

type SensorEnt added in v1.15.0

type SensorEnt struct {
	ID          string
	Host        string
	Type        string
	Param       string
	Total       int64
	Send        int64
	State       string
	Ignore      bool
	StatsLen    int
	MonitorsLen int
	FirstTime   int64
	LastTime    int64
}

type SshPublicKeyPostEnt added in v1.36.0

type SshPublicKeyPostEnt struct {
	PublicKey string
}

type WebAPI

type WebAPI struct {
	Statik        http.Handler
	Port          string
	UseTLS        bool
	Host          string
	IP            string
	Local         bool
	Timeout       int
	Password      string
	DataStorePath string
	Version       string
	QuitSignal    chan os.Signal
}

Jump to

Keyboard shortcuts

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