report

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlive

func GetAlive(wantedMod string) ([]*models.Instance, error)

func Init

func Init(cfg ReportSection)

Types

type ReportSection

type ReportSection struct {
	Mod      string `yaml:"mod"`
	Enabled  bool   `yaml:"enabled"`
	Interval int    `yaml:"interval"`
	Timeout  int    `yaml:"timeout"`
	HTTPPort string `yaml:"http_port"`
	RPCPort  string `yaml:"rpc_port"`
	Remark   string `yaml:"remark"`
	Region   string `yaml:"region"`
}
var Config ReportSection

Jump to

Keyboard shortcuts

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