field

package
v0.0.0-...-ae06870 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StateMachine = map[Role]nextFunc{
	Consumer:        nextConsumer,
	Merchant:        nextMerchant,
	ServiceProvider: nextServiceProvider,
}

Functions

This section is empty.

Types

type DNI

type DNI uint64

func (DNI) HumanName

func (d DNI) HumanName() string

func (DNI) Name

func (d DNI) Name() string

func (DNI) Validate

func (d DNI) Validate() error

type Email

type Email string

func (Email) HumanName

func (e Email) HumanName() string

func (Email) Name

func (e Email) Name() string

func (Email) Validate

func (e Email) Validate() error

type Name

type Name string

func (Name) HumanName

func (n Name) HumanName() string

func (Name) Name

func (n Name) Name() string

func (Name) Validate

func (n Name) Validate() error

type Password

type Password string

func (Password) HumanName

func (p Password) HumanName() string

func (Password) Name

func (p Password) Name() string

func (Password) Validate

func (p Password) Validate() error

type Role

type Role string
const (
	ServiceProvider Role = "service-provider"
	Merchant        Role = "merchant"
	Consumer        Role = "consumer"
)

func (Role) HumanName

func (r Role) HumanName() string

func (Role) Name

func (r Role) Name() string

func (Role) Validate

func (r Role) Validate() error

type Stage

type Stage int64
const (
	Nil            Stage = 0
	Start          Stage = 1
	Shared         Stage = 2
	SelectCategory Stage = 3
	Identification Stage = 4

	End Stage = -1
)

func (Stage) Next

func (s Stage) Next(r Role) Stage

type Surname

type Surname string

func (Surname) HumanName

func (s Surname) HumanName() string

func (Surname) Name

func (s Surname) Name() string

func (Surname) Validate

func (s Surname) Validate() error

Jump to

Keyboard shortcuts

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