handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressURL = "https://api.ideal-postcodes.co.uk/v1/"
)
View Source
var (
	PostcoderURL = "https://ws.postcoder.com/pcw/"
)

Functions

This section is empty.

Types

type Address

type Address struct {
	Url string
	Key string
}

func New added in v0.26.0

func New() *Address

func (*Address) LookupPostcode

func (a *Address) LookupPostcode(ctx context.Context, req *pb.LookupPostcodeRequest, rsp *pb.LookupPostcodeResponse) error

type Postcoder

type Postcoder struct {
	Url string
	Key string
}

func (*Postcoder) LookupPostcode

func (a *Postcoder) LookupPostcode(ctx context.Context, req *pb.LookupPostcodeRequest, rsp *pb.LookupPostcodeResponse) error

Jump to

Keyboard shortcuts

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