lib

package
v0.0.0-...-923536d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(array []string, item string) bool

func CreateFormReader

func CreateFormReader(data map[string]string) io.Reader

func ParseCsrfToken

func ParseCsrfToken(e *colly.HTMLElement) string

Types

type DataHistory

type DataHistory struct {
	Title string
	Date  string
}

type DetailDelivery

type DetailDelivery struct {
	Title string
	Value string
}

type DetailHistory

type DetailHistory struct {
	Data     []DataHistory
	Receiver ReceiverInfo
}

func ParseDetailHistory

func ParseDetailHistory(h *colly.HTMLElement) DetailHistory

type DetailShipment

type DetailShipment struct {
	Title string
	Value string
}

type DetailStatus

type DetailStatus struct {
	Code    string
	Message string
}

type DetailTracking

type DetailTracking struct {
	Data struct {
		Delivery []DetailDelivery
		History  DetailHistory
		Shipment []DetailShipment
	}
	Status DetailStatus
}

type ReceiverInfo

type ReceiverInfo struct {
	Name         string
	Relationship string
}

type ResultDelivery

type ResultDelivery []DetailDelivery

func ParseDeliveryDetail

func ParseDeliveryDetail(h *colly.HTMLElement) ResultDelivery

type ResultShipment

type ResultShipment []DetailShipment

func ParseDetailShipment

func ParseDetailShipment(h *colly.HTMLElement) ResultShipment

Jump to

Keyboard shortcuts

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