handler

package
v1.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ADDRESS_TYPE = "http://ns.dasch.swiss/repository#Address"

Variables

This section is empty.

Functions

func HandleAddressRoutes

func HandleAddressRoutes(r *mux.Router, n negroni.Negroni, service address.UseCase)

HandleAddressRoutes makes URL handlers for creating, updating, deleting and getting addresses

Types

type AddressRequestBody

type AddressRequestBody struct {
	Street     string `json:"street"`
	PostalCode string `json:"postalCode"`
	Locality   string `json:"locality"`
	Country    string `json:"country"`
	Canton     string `json:"canton"`
	Additional string `json:"additional"`
}

AddressRequestBody reusable struct to use when decoding the JSON request body

Jump to

Keyboard shortcuts

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