models

package
v0.0.0-...-ef166ba Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DB is a connection to your database to be used throughout your application.

Functions

This section is empty.

Types

type Host

type Host struct {
	ID          int       `json:"id" db:"id"`
	Name        string    `json:"name" db:"name"`
	Description string    `json:"description" db:"description"`
	Url         string    `json:"url" db:"url"`
	ApiVersion  string    `json:"api_version" db:"api_version"`
	AccessKey   string    `json:"access_key" db:"access_key"`
	SecretKey   string    `json:"secret_key" db:"secret_key"`
	CreatedAt   time.Time `json:"created_at" db:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" db:"updated_at"`
}

func (Host) String

func (h Host) String() string

String is not required by pop and may be deleted

func (*Host) Validate

func (h *Host) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.

func (*Host) ValidateSave

func (h *Host) ValidateSave(tx *pop.Connection) (*validate.Errors, error)

ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.

func (*Host) ValidateUpdate

func (h *Host) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.

type Hosts

type Hosts []Host

Hosts is not required by pop and may be deleted

func (Hosts) String

func (h Hosts) String() string

String is not required by pop and may be deleted

Jump to

Keyboard shortcuts

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