data

package
v0.0.0-...-7f3c82a Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 4 Imported by: 1

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

func ConvertAddressP(addressP *AddressP) (address Address)

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

func ConvertPersonInP(personInP *PersonInP) (personIn PersonIn)

func GetPersonIn

func GetPersonIn(r *http.Request) (personIn PersonIn, err error)

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 PersonOut

type PersonOut struct {
	FirstName string  `json:"first_name,omitempty"`
	LastName  string  `json:"last_name,omitempty"`
	Address   Address `json:"address,omitempty"`
	Profile   Profile `json:"profile,omitempty"`
}

type Postal

type Postal struct {
	Code      string `json:"code,omitempty"`
	Region    string `json:"region,omitempty"`
	Utilities string `json:"utilities,omitempty"`
}

func ConvertPostalP

func ConvertPostalP(postalP *PostalP) (postal Postal)

type PostalP

type PostalP struct {
	Code      *string `json:"code,omitempty" validate:"" transform:""`
	Region    *string `json:"region,omitempty" validate:"" transform:""`
	Utilities *string `json:"utilities,omitempty" validate:"" transform:""`
}

type Profile

type Profile struct {
	Email    string `json:"email,omitempty"`
	Username string `json:"username,omitempty"`
}

type TicketIn

type TicketIn struct {
	Id string `json:"id,omitempty"`
}

func ConvertTicketInP

func ConvertTicketInP(ticketInP *TicketInP) (ticketIn TicketIn)

func GetTicketIn

func GetTicketIn(r *http.Request) (ticketIn TicketIn, err error)

type TicketInP

type TicketInP struct {
	Id *string `json:"id,omitempty" validate:"" transform:""`
}

type TicketOut

type TicketOut struct {
	Row  string `json:"row,omitempty"`
	Seat string `json:"seat,omitempty"`
}

Jump to

Keyboard shortcuts

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