types

package
v0.0.0-...-b128297 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name    string
	Health  HealthStatus
	Version string
}

type Content

type Content struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewContent

func NewContent() *Content

func (*Content) Delete

func (c *Content) Delete(key string)

func (*Content) Get

func (c *Content) Get(key string) (State, bool)

func (*Content) MarshalJSON

func (c *Content) MarshalJSON() ([]byte, error)

func (*Content) Set

func (c *Content) Set(key string, value State)

func (*Content) UnMarshalJSON

func (c *Content) UnMarshalJSON(data []byte) error

type CpuInfo

type CpuInfo struct {
	Count int
	Cores int
}

type CustomContext

type CustomContext struct {
	echo.Context
	Opts     Opt
	Status   State
	Contents *Content
}

type DiskInfo

type DiskInfo struct {
	Name string
	Size string
}

type HealthStatus

type HealthStatus struct {
	Url    string
	State  string
	Code   int
	Reason string
}

type Intf

type Intf struct {
	Name string
	Mac  string
	Ips  []string
}

type Opt

type Opt struct {
	Listen      int
	Is_master   bool
	Help        bool
	Master_addr string
	Expire      int
	Key         string
	Version     bool
	Debug       bool
}

type State

type State struct {
	Os         string
	Hostname   string
	Apps       []App
	Interfaces []Intf
	Memory     string
	Swap       string
	Cpu        CpuInfo
	Disks      []DiskInfo
	Uptime     int64
	LastUpdate int64
}

Jump to

Keyboard shortcuts

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