v1

package
v1.1.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BearerAuthnTokenKey = "BearerAuthnToken"
	BasicAuthnKey       = "BasicAuthn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextData

type ContextData struct {
	JsonData []byte `json:"data"`
}

type ContextPos

type ContextPos struct {
	ConfigPath string  `json:"config-path"`
	PosIndex   []int32 `json:"pos-index"`
}

type ExecuteRequest

type ExecuteRequest struct {
	ServerName string   `json:"server_name"`
	Args       []string `json:"args"`
}

type ExecuteResponse

type ExecuteResponse struct {
	Successful     bool   `json:"successful"`
	StandardOutput []byte `json:"stdout"`
	StandardError  []byte `json:"stderr"`
}

type Metrics

type Metrics struct {
	OS             string           `json:"system"`
	Time           string           `json:"time"`
	Cpu            string           `json:"cpu"`
	Mem            string           `json:"mem"`
	Disk           string           `json:"disk"`
	StatusList     []*WebServerInfo `json:"status-list"`
	BifrostVersion string           `json:"bifrost-version"`
}

type NetworkConnectivity

type NetworkConnectivity int
const (
	NetUnknown NetworkConnectivity = iota
	NetReachable
	NetUnreachable
)

type Response

type Response struct {
	Message string `json:"message"`
}

type ServerName

type ServerName struct {
	Name string `json:"name"`
}

type ServerNames

type ServerNames []ServerName

type State

type State int
const (
	UnknownState State = iota
	Disabled
	Initializing
	Abnormal
	Normal
)

type Statistics

type Statistics struct {
	HttpSvrsNum   int              `json:"http_svrs_num"`
	HttpSvrs      map[string][]int `json:"http_svrs"`
	HttpPorts     []int            `json:"http_ports"`
	StreamSvrsNum int              `json:"stream_svrs_num"`
	StreamPorts   []int            `json:"stream_ports"`
}

type WebServerConfig

type WebServerConfig struct {
	ServerName           *ServerName `json:"server-name"`
	JsonData             []byte      `json:"data"`
	OriginalFingerprints []byte      `json:"original-fingerprints"`
}

type WebServerConfigContextPos

type WebServerConfigContextPos struct {
	ServerName           *ServerName `json:"server-name"`
	ContextPos           *ContextPos `json:"context-pos"`
	OriginalFingerprints []byte      `json:"original-fingerprints"`
}

type WebServerInfo

type WebServerInfo struct {
	Name    string `json:"name"`
	Status  State  `json:"status"`
	Version string `json:"version"`
}

type WebServerLog

type WebServerLog struct {
	Lines <-chan []byte `json:"lines"`
}

type WebServerLogWatchRequest

type WebServerLogWatchRequest struct {
	ServerName          *ServerName `json:"server-name"`
	LogName             string      `json:"log-path"`
	FilteringRegexpRule string      `json:"filtering-regexp-rule"`
}

Jump to

Keyboard shortcuts

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