correios

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProvideCorreiosCLI = func(baseURL, validationURL string) CorreiosCLI {
	return CorreiosCLI{service: services.ProvideCorreiosService(baseURL, validationURL)}
}

ProvideCorreiosCLI provides a CorreiosCLI

View Source
var ProvideNewModel = func(orderNumber, baseURL, validationURL string) *model {
	return &model{
		orderNumber: orderNumber,
		service:     services.ProvideCorreiosService(baseURL, validationURL),
	}
}

Functions

func FormatListToListItem

func FormatListToListItem(response *dto.CorreiosResponse, err error) []list.Item

func MountList

func MountList(orderNumber string) *model

func RenderBubbleTeaList

func RenderBubbleTeaList(orderNumber string)

Types

type CorreiosCLI

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

CorreiosCLI provides the cli validation for correios command

func (*CorreiosCLI) RetrieveOrder

func (cli *CorreiosCLI) RetrieveOrder(orderNumber string)

RetrieveOrder prints the order data on the terminal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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