webapi

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 51 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 CertEnt added in v1.50.0

type CertEnt struct {
	Status  string `json:"Status"`
	ID      string `json:"ID"`
	Subject string `json:"Subject"`
	Node    string `json:"Node"`
	Created int64  `json:"Created"`
	Revoked int64  `json:"Revoked"`
	Expire  int64  `json:"Expire"`
	Type    string `json:"Type"`
}

type IPAMRangeEnt added in v1.46.0

type IPAMRangeEnt struct {
	Range  string
	Size   int
	Used   int
	Usage  float64
	UsedIP []int
}

type NodeMemo added in v1.52.0

type NodeMemo struct {
	ID   string
	Memo string
}

type OTelMetricEnt added in v1.54.0

type OTelMetricEnt struct {
	ID      string `json:"ID"`
	Host    string `json:"Host"`
	Service string `json:"Service"`
	Scope   string `json:"Scope"`
	Name    string `json:"Name"`
	Type    string `json:"Type"`
	Count   int    `json:"Count"`
	First   int64  `json:"First"`
	Last    int64  `json:"Last"`
}

type OTelTraceDAGEnt added in v1.54.0

type OTelTraceDAGEnt struct {
	Nodes []OTelTraceDAGNodeEnt `json:"Nodes"`
	Links []OTelTraceDAGLinkEnt `json:"Links"`
}

type OTelTraceDAGLinkEnt added in v1.54.0

type OTelTraceDAGLinkEnt struct {
	Src   string `json:"Src"`
	Dst   string `json:"Dst"`
	Count int    `json:"Count"`
}

type OTelTraceDAGNodeEnt added in v1.54.0

type OTelTraceDAGNodeEnt struct {
	Name  string `json:"Name"`
	Count int    `json:"Count"`
}

type OTelTraceEnt added in v1.54.0

type OTelTraceEnt struct {
	Bucket   string  `json:"Bucket"`
	TraceID  string  `json:"TraceID"`
	Hosts    string  `json:"Hosts"`
	Services string  `json:"Services"`
	Scopes   string  `json:"Scopes"`
	Start    int64   `json:"Start"`
	End      int64   `json:"End"`
	Dur      float64 `json:"Dur"`
	NumSpan  int     `json:"NumSpan"`
}

type OTelTraceReq added in v1.54.0

type OTelTraceReq struct {
	Bucket  string `json:"Bucket"`
	TraceID string `json:"TraceID"`
}

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 SSHPublicKeyPostEnt added in v1.55.0

type SSHPublicKeyPostEnt struct {
	PublicKey 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 WebAPI

type WebAPI struct {
	Statik        http.Handler
	Port          string
	UseTLS        bool
	Host          string
	IP            string
	Local         bool
	EnableMCP     bool
	MCPFrom       string
	MCPMode       string
	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