address

package
v0.0.0-...-8132f3d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAddress

func HandleAddress(w http.ResponseWriter, r *http.Request)

GET address handler

Types

type AddressRequest

type AddressRequest struct {
	Group     data.AddressGroup `schema:"group"`
	ValidOnly bool              `schema:"valid-only"`
}

GET address request URL parameters

type AddressResponse

type AddressResponse struct {
	StreetName string `json:"street-name"`
	City       string `json:"city"`
	State      string `json:"state"`
	Country    string `json:"country"`
	PostalCode string `json:"postal-code"`
	Valid      bool   `json:"valid"`
	Trivia     string `json:"trivia"`
}

GET address request response body

func (*AddressResponse) FromAddress

func (addressResponse *AddressResponse) FromAddress(address data.Address)

update address response using address

Jump to

Keyboard shortcuts

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