register

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registerer

type Registerer struct {
}

Registerer validates the supplied person, calculates the price in the requested currency and saves the result. It will return an error when: -the person object does not include all the fields -the currency is invalid -the exchange rate cannot be loaded -the data layer throws an error.

func (*Registerer) Do

func (r *Registerer) Do(in *data.Person) (int, error)

Do is API for this struct

Jump to

Keyboard shortcuts

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