inventory

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	ID        int64
	Status    *Status
	Results   []*CheckResult
	CreatedAt time.Time
}

type CheckResult

type CheckResult struct {
	ID               int64
	PositionID       int64
	ExpectedQuantity int
	ActualQuantity   int
	Difference       int
	CreatedAt        time.Time
}

type Status

type Status struct {
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus(value string) (*Status, error)

func (Status) Get

func (s Status) Get() StatusEnum

func (Status) String

func (s Status) String() string

type StatusEnum

type StatusEnum string
const (
	Success    StatusEnum = "success"
	Incomplete StatusEnum = "incomplete"
	Failed     StatusEnum = "failed"
)

func (StatusEnum) IsValid

func (s StatusEnum) IsValid() bool

Jump to

Keyboard shortcuts

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