Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFailedDecodingInput = errors.New("Failed decoding input")
)
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Address1 string `json:"address_1,omitempty"` Address2 string `json:"address_2,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` Postal Postal `json:"postal,omitempty"` }
func ConvertAddressP ¶
type AddressP ¶
type AddressP struct { Address1 *string `json:"address_1,omitempty" validate:"" transform:""` Address2 *string `json:"address_2,omitempty" validate:"" transform:""` City *string `json:"city,omitempty" validate:"" transform:""` State *string `json:"state,omitempty" validate:"" transform:""` Postal *PostalP `json:"postal,omitempty" validate:"" transform:""` }
type Attendance ¶
type Attendance struct {
Date string `json:"date,omitempty"`
}
func ConvertAttendanceP ¶
func ConvertAttendanceP(attendanceP *AttendanceP) (attendance Attendance)
type AttendanceP ¶
type AttendanceP struct {
Date *string `json:"date,omitempty" validate:"" transform:""`
}
type ManagementIn ¶
type ManagementIn struct {
Power []bool `json:"power,omitempty"`
}
func ConvertManagementInP ¶
func ConvertManagementInP(managementInP *ManagementInP) (managementIn ManagementIn)
func GetManagementIn ¶
func GetManagementIn(r *http.Request) (managementIn ManagementIn, err error)
type ManagementInP ¶
type ManagementInP struct {
Power []*bool `json:"power,omitempty" validate:"" transform:""`
}
type ManagementOut ¶
type ManagementOut struct {
Success []bool `json:"success,omitempty"`
}
type PersonIn ¶
type PersonIn struct { Id int64 `json:"id,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Address Address `json:"address,omitempty"` Attendance []Attendance `json:"attendance,omitempty"` }
func ConvertPersonInP ¶
type PersonInP ¶
type PersonInP struct { Id *int64 `json:"id,omitempty" validate:"" transform:""` FirstName *string `json:"first_name,omitempty" validate:"maxLength=100" transform:"truncate=50"` LastName *string `json:"last_name,omitempty" validate:"maxLength=1000,required,minLength=1" transform:"truncate=50,hash"` Address *AddressP `json:"address,omitempty" validate:"" transform:""` Attendance []*AttendanceP `json:"attendance,omitempty" validate:"" transform:""` }
type Postal ¶
type Postal struct { Code string `json:"code,omitempty"` Region string `json:"region,omitempty"` Utilities string `json:"utilities,omitempty"` }
func ConvertPostalP ¶
Click to show internal directories.
Click to hide internal directories.