Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTypeUser = errors.New("invalid type user") ErrNotAllowedTypeUser = errors.New("not allowed user type") )
View Source
var (
ErrInvalidCNPJ = errors.New("invalid cnpj")
)
View Source
var (
ErrInvalidCPF = errors.New("invalid cpf")
)
View Source
var (
ErrInvalidCurrency = errors.New("invalid currency")
)
View Source
var (
ErrInvalidDocument = errors.New("invalid document")
)
View Source
var (
ErrInvalidEmail = errors.New("invalid email")
)
View Source
var (
ErrInvalidTypeDocument = errors.New("invalid type document")
)
View Source
var (
ErrInvalidUuid = errors.New("invalid uuid")
)
Functions ¶
This section is empty.
Types ¶
type Amount ¶
type Amount struct {
// contains filtered or unexported fields
}
Amount structure
func NewAmountTest ¶
NewAmountTest create new Amount for testing
type Cnpj ¶
type Cnpj struct {
// contains filtered or unexported fields
}
Cnpj structure
type Currency ¶
type Currency struct {
// contains filtered or unexported fields
}
Currency structure
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document structure
func NewDocument ¶
func NewDocument(typeDoc TypeDocument, value string) (Document, error)
NewDocument create new Document
func NewDocumentTest ¶
func NewDocumentTest(t TypeDocument, value string) Document
NewDocumentTest create new Document for testing
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
Email structure
type FullName ¶
type FullName struct {
// contains filtered or unexported fields
}
FullName structure
type Money ¶
type Money struct {
// contains filtered or unexported fields
}
Money structure
func NewMoneyBRL ¶
NewMoneyBRL create new Money with currency BRL
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
Password structure
type TypeCurrency ¶
type TypeCurrency string
TypeCurrency define currency types
const ( // Currency types BRL TypeCurrency = "BRL" USD TypeCurrency = "USD" )
func (TypeCurrency) String ¶
func (tc TypeCurrency) String() string
type TypeDocument ¶
type TypeDocument string
TypeDocument define document types
const ( // Document types CPF TypeDocument = "CPF" CNPJ TypeDocument = "CNPJ" )
func (TypeDocument) String ¶
func (t TypeDocument) String() string
String returns string representation of the TypeDocument
type TypeUser ¶
type TypeUser string
TypeUser define user types
func NewTypeUser ¶
type Uuid ¶
type Uuid struct {
// contains filtered or unexported fields
}
Uuid structure
Click to show internal directories.
Click to hide internal directories.