core

package
Version: v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown()

Types

type PartsContext

type PartsContext interface {
	GetSpare(key hsk.Key) (Spare, error)
	FindLatestSpares(page, size int) (records.Page, error)
	CreateSpare(obj Spare) (hsk.Key, error)
	UpdateSpare(key hsk.Key, obj Spare) error
}

func Context

func Context() PartsContext

func CreateContext

func CreateContext() PartsContext

type Spare

type Spare struct {
	Number    string
	Type      string
	Weight    int
	AppliesTo []string `hsk:"null"`
}

func (Spare) Valid

func (o Spare) Valid() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL