kardbord

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrowserUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"

Firefox 91.0

View Source
var Lang = "en_US"

Functions

This section is empty.

Types

type Event

type Event struct {
	Status   Status    `json:"status"`
	Message  string    `json:"message"`
	Time     time.Time `json:"time"`
	Location string    `json:"location,omitempty"`
}

type MultipleTrackable

type MultipleTrackable interface {
	TrackMultiple(ids ...string) ([]*Shipment, error)
}

type Shipment

type Shipment struct {
	Events []Event `json:"events"`
}

type SingleTrackable

type SingleTrackable interface {
	TrackSingle(id string) (*Shipment, error)
}

type Status

type Status int
const (
	StatusUnknown Status = iota
	StatusProcessing
	StatusTransit
	StatusDelivered
	StatusReturned
	StatusFailure
)

func (Status) MarshalJSON added in v0.1.2

func (s Status) MarshalJSON() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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