monitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(cp string)

func ServeRPC

func ServeRPC(monitor *Monitor, conf *Configuration) error

Types

type Call

type Call struct {
	Id     string `json:"id"`
	Method string `json:"method"`
	Params []any  `json:"params"`
}

type Configuration

type Configuration struct {
	RPC struct {
		Port int `toml:"port"`
	} `toml:"rpc"`
}

func Setup

func Setup(path string) (*Configuration, error)

type GoogleInstance

type GoogleInstance struct {
}

type Instance

type Instance interface {
}

type Monitor

type Monitor struct {
}

func BuildMonitor

func BuildMonitor(conf *Configuration) (*Monitor, error)

func (*Monitor) Loop

func (monitor *Monitor) Loop()

type R

type R struct {
	// contains filtered or unexported fields
}

type Render

type Render struct {
	// contains filtered or unexported fields
}

func (*Render) RenderData

func (r *Render) RenderData(data any)

func (*Render) RenderError

func (r *Render) RenderError(err error)

Jump to

Keyboard shortcuts

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