models

package
v0.0.0-...-ca9f6e0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 8 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 Framework

type Framework struct {
	ID          uuid.UUID `json:"id" db:"id" fake:"skip"`
	CreatedAt   time.Time `json:"-" db:"created_at" fake:"skip"`
	UpdatedAt   time.Time `json:"-" db:"updated_at" fake:"skip"`
	Title       string    `json:"title" db:"title" fake:"hipster_word"`
	Description string    `json:"description" db:"description" fake:"hipster_paragraph"`
}

func (Framework) String

func (f Framework) String() string

String is not required by pop and may be deleted

func (*Framework) Validate

func (f *Framework) Validate(tx *pop.Connection) (*validate.Errors, error)

func (*Framework) ValidateCreate

func (f *Framework) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Framework) ValidateUpdate

func (f *Framework) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

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

type Frameworks

type Frameworks []Framework

Frameworks is not required by pop and may be deleted

func (Frameworks) String

func (f Frameworks) 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