Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCustomerInResponse = errors.New("Response has no matching customer") ErrMissingField = "Error missing %v" )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Street string `json:"street" bson:"street,omitempty"` Number string `json:"number" bson:"number,omitempty"` Country string `json:"country" bson:"country,omitempty"` City string `json:"city" bson:"city,omitempty"` PostCode string `json:"postcode" bson:"postcode,omitempty"` ID string `json:"id" bson:"-"` Links Links `json:"_links"` }
type Card ¶
type User ¶
type User struct { FirstName string `json:"firstName" bson:"firstName"` LastName string `json:"lastName" bson:"lastName"` Email string `json:"-" bson:"email"` Username string `json:"username" bson:"username"` Password string `json:"-" bson:"password,omitempty"` Addresses []Address `json:"-,omitempty" bson:"-"` Cards []Card `json:"-,omitempty" bson:"-"` UserID string `json:"id" bson:"-"` Links Links `json:"_links"` Salt string `json:"-" bson:"salt"` }
Click to show internal directories.
Click to hide internal directories.