warranties

package
v0.0.0-...-7f26107 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Warranty

type Warranty struct {
	ID        int
	FirstName string `json:"fname" form:"fname"`
	LastName  string `json:"lname" form:"lname"`
	Email     string `json:"email" form:"email"`
	Part      int    `json:"part" form:"part"`
	Added     time.Time
}

func All

func All() ([]Warranty, error)

All retrieves all listed activated warranties from the database.

func (*Warranty) Add

func (w *Warranty) Add() error

Add inserts a new warranty.

func (*Warranty) Delete

func (w *Warranty) Delete() error

func (*Warranty) Get

func (w *Warranty) Get() error

Get returns a warranty based off the supplied ID.

Jump to

Keyboard shortcuts

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