part

package
v0.0.0-...-f52a17c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	DB *pg.DB
}

Service is the service dealing with storing and retrieving part items from the database.

func (Service) CreatePart

CreatePart creates a part given a description

func (Service) CreateParts

CreateParts create part items from a list of part descriptions

func (Service) DeletePart

DeletePart deletes a part given an ID

func (Service) GetPart

GetPart retrieves a part item from its ID

func (Service) ListPart

ListPart retrieves a part item from its ID

func (Service) UpdatePart

UpdatePart updates a part item

func (Service) UpdateParts

UpdateParts updates part items given their respective title and description.

Jump to

Keyboard shortcuts

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