location

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationErrorInvalidCountryCode = iota // 0
	LocationErrorInvalidCityCode           // 1
)

Variables

This section is empty.

Functions

func LocationsGetCountries

func LocationsGetCountries(c echo.Context) error

LocationsGetCountries displays all available location in Tania

Types

type Country

type Country struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Country is country

type LocationError

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

LocationError is a custom error from Go built-in error

func (LocationError) Error

func (e LocationError) Error() string

type LocationServer

type LocationServer struct{}

func NewLocationServer

func NewLocationServer() (*LocationServer, error)

func (*LocationServer) Mount

func (s *LocationServer) Mount(g *echo.Group)

Jump to

Keyboard shortcuts

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