models

package
v0.0.0-...-50e51bf Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Name       string   `json:"ip"`
	Messages   []string `json:"messages"`
	SendCount  int      `json:"send_count"`
	LargestMsg int      `json:"largest_msg"`
	RunTime    int64    `json:"run_time"`
	MaxMemory  int      `json:"max_memory"`
}

type Server

type Server struct {
	Name      string `json:"name"`
	IP        net.IP `json:"ip"`
	PrivateIP net.IP `json:"private_ip"`
	Username  string `json:"username"`
}

type ServerByName

type ServerByName []*Server

func (ServerByName) Len

func (s ServerByName) Len() int

func (ServerByName) Less

func (s ServerByName) Less(i, j int) bool

func (ServerByName) Swap

func (s ServerByName) Swap(i, j int)

Jump to

Keyboard shortcuts

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