ports

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Init() error
	Render() error
}

type Command

type Command interface {
	Start()
	AddSubCommands(subcommands ...Command)
	Command() *cobra.Command
}

type Company

type Company struct {
	Name   string
	Domain string
	Type   string
}

type GeoGateway

type GeoGateway interface {
	CallFor(ip net.IP) (result *IPResult, err error)
}

type IPResult

type IPResult struct {
	Company      *Company
	Hostname     string
	City         string
	Region       string
	Country      string
	CountryName  string
	CountryEmoji string
	Location     string
	IP           net.IP
}

type MetricConfig

type MetricConfig struct {
	Labels     prometheus.Labels
	MetricType enums.PrometheusMetricType
}

type MetricResult

type MetricResult struct {
	Labels prometheus.Labels
	Value  float64
}

type MonitorController

type MonitorController interface {
	Monitor() error
	Static() error
	Dynamic() error
}

type PrometheusGateway

type PrometheusGateway interface {
	CallFor(metrics Metrics) (result MetricsResult, err error)
}

type RPCGateway

type RPCGateway interface {
	CallFor(method enums.RPCMethod, params ...interface{}) (result any, err error)
}

type RootController

type RootController interface {
	BeforeStart() bool
}

type VersionController

type VersionController interface {
	PrintVersion()
}

Jump to

Keyboard shortcuts

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