domain

package
v0.0.0-...-8d4a447 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderModel

type OrderModel struct {
	Id     string    `json:"id"`
	Price  uint64    `json:"price"`
	Status string    `json:"status"`
	Date   time.Time `json:"date"`
}

func (OrderModel) StatusType

func (o OrderModel) StatusType() (Status, error)

func (OrderModel) Validate

func (o OrderModel) Validate() error

func (OrderModel) ValidateStatus

func (o OrderModel) ValidateStatus() error

type OrderRangeModel

type OrderRangeModel struct {
	Start       string
	End         string
	OldestFirst bool
}

func (OrderRangeModel) Validate

func (o OrderRangeModel) Validate() error

type Status

type Status int8
const (
	Unknown     Status = 0
	Unconfirmed Status = iota + 1
	InProgress
	Ready
	InTransit
	Delivered
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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