entity

package
v0.0.0-...-c6e93ef Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregatePingOrigin

func AggregatePingOrigin(origin string, result *[]bson.M) error

func GetOriginList

func GetOriginList() []string

Types

type Ping

type Ping struct {
	Id               bson.ObjectId `json:"id" bson:"_id,omitempty"`
	CreatedAt        time.Time     `json:"created_at"`
	Origin           string        `json:"origin,omitempty" bson:",omitempty"`
	NameLookupTimeMs int           `json:"name_lookup_time_ms,omitempty" bson",omitempty"`
	ConnectTimeMs    int           `json:"connect_time_ms,omitempty" bson",omitempty"`
	TransferTimeMs   int           `json:"transfer_time_ms,omitempty" bson",omitempty"`
	TotalTimeMs      int           `json:"total_time_ms,omitempty" bson",omitempty"`
	Status           int           `json:"status,omitempty" bson",omitempty"`
}

func PingNew

func PingNew() *Ping

func (*Ping) Insert

func (p *Ping) Insert() error

func (*Ping) Normalize

func (p *Ping) Normalize()

func (*Ping) Validate

func (p *Ping) Validate() error

Jump to

Keyboard shortcuts

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