_1_fat_interface

package
v0.0.0-...-24b7180 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	ID          int
	Description string
}

type CityModel

type CityModel interface {
	Save(*City) (int, error)
	Update(*City) error
	LoadByID(int) (*City, error)
	LoadAll() ([]*City, error)
}

type LoadCityByIDEndpoint

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

func (*LoadCityByIDEndpoint) ServeHTTP

func (l *LoadCityByIDEndpoint) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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