models

package
v0.0.0-...-798f38b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closure

type Closure 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"`
	Name           string       `json:"name" db:"name"`
	Address        string       `json:"address" db:"address"`
	Reason         string       `json:"reason" db:"reason"`
	ClosureDate    time.Time    `json:"closureDate" db:"closuredate"`
	ReopenDate     nulls.Time   `json:"reopenDate" db:"reopendate"`
	ReopenComments nulls.String `json:"reopenComments" db:"reopencomments"`
}

func (Closure) String

func (c Closure) String() string

String is not required by pop and may be deleted

func (*Closure) Validate

func (c *Closure) 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 (*Closure) ValidateSave

func (c *Closure) 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 (*Closure) ValidateUpdate

func (c *Closure) 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 Closures

type Closures []Closure

Closures is not required by pop and may be deleted

func (Closures) String

func (c Closures) 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