errors

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIApartment

type APIApartment struct {
	Position uint
	Owner    APIPerson
}

type APIPerson

type APIPerson struct {
	ID       int
	FullName string
}

func ToAPIPerson

func ToAPIPerson(value DBPerson) APIPerson

type Converter

type Converter interface {
	ToAPIApartment(source DBApartment) APIApartment
	ToDBApartment(source APIApartment) (DBApartment, error)
}

goverter:converter goverter:extend ToDBPerson ToAPIPerson

type DBApartment

type DBApartment struct {
	Position uint
	Owner    DBPerson
}

type DBPerson

type DBPerson struct {
	ID        int
	FirstName string
	LastName  string
}

func ToDBPerson

func ToDBPerson(value APIPerson) (DBPerson, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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