models

package
v0.0.0-...-f6934af Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT 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 Screencast

type Screencast struct {
	ID         uuid.UUID `json:"id" db:"id"`
	CreatedAt  time.Time `json:"created_at" db:"created_at"`
	UpdatedAt  time.Time `json:"updated_at" db:"updated_at"`
	EpisodeNum int       `json:"episode_num" db:"episode_num"`
	Title      string    `json:"title" db:"title"`
	Intro      string    `json:"intro" db:"intro"`
	Markdown   string    `json:"markdown" db:"markdown"`
}

Screencast model struct

func (Screencast) String

func (s Screencast) String() string

String is not required by pop and may be deleted

func (*Screencast) Validate

func (s *Screencast) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Screencast) ValidateCreate

func (s *Screencast) 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 (*Screencast) ValidateUpdate

func (s *Screencast) 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 Screencasts

type Screencasts []Screencast

Screencasts is not required by pop and may be deleted

func (Screencasts) String

func (s Screencasts) 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