models

package
v0.0.0-...-bb3e6dd Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	Id          bson.ObjectId `bson:"_id,omitempty" json:"id"`
	SiteDns     string        `json:"sitedns,omitempty"`
	Description string        `json:"description,omitempty"`
	CreatedOn   time.Time     `json:"createdon,omitempty"`
}

type SmokeTest

type SmokeTest struct {
	Id         bson.ObjectId `bson:"_id,omitempty" json:"id"`
	SiteId     bson.ObjectId `json:"siteid,omitempty"`
	EnvDns     string        `json:"envdns,omitempty"`
	HostIp     string        `json:"hostip,omitempty"`
	Tags       []string      `json:"tags,omitempty"`
	CreatedOn  time.Time     `json:"createdon,omitempty"`
	CreatedBy  string        `json:"createdby"`
	PassFail   string        `json:"passfail,omitempty"`
	UrlResults []UrlCodes    `json:"urlresults,omitempty"`
}

type TestUrl

type TestUrl struct {
	Id           bson.ObjectId `bson:"_id,omitempty" json:"id"`
	SiteId       bson.ObjectId `json:"siteid,omitempty"`
	Url          string        `json:"url,omitempty"`
	HtmlFragment string        `json:"htmlfragment"`
	CreatedOn    time.Time     `json:"createdon,omitempty"`
}

type UrlCodes

type UrlCodes struct {
	Url        string `json:"url,omitempty"`
	StatusCode int    `json:"statuscode,omitempty"`
	Err        string `json:"err,omitempty"`
}

type User

type User struct {
	Id           bson.ObjectId `bson:"_id,omitempty" json:"id"`
	FirstName    string        `json:"firstname"`
	LastName     string        `json:"lastname"`
	Email        string        `json:"email"`
	Password     string        `json:"password,omitempty"`
	HashPassword []byte        `json:"hashpassword,omitempty"`
}

Jump to

Keyboard shortcuts

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