models

package
v0.0.0-...-77bbea8 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttendeeList

type AttendeeList struct {

	// attending
	Attending []UserID `json:"attending"`

	// pending
	Pending []UserID `json:"pending"`
}

AttendeeList attendee list

swagger:model attendeeList

func (*AttendeeList) MarshalBinary

func (m *AttendeeList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AttendeeList) UnmarshalBinary

func (m *AttendeeList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AttendeeList) Validate

func (m *AttendeeList) Validate(formats strfmt.Registry) error

Validate validates this attendee list

type AttendeeStatus

type AttendeeStatus string

AttendeeStatus attendee status

swagger:model attendeeStatus

const (

	// AttendeeStatusAttending captures enum value "attending"
	AttendeeStatusAttending AttendeeStatus = "attending"

	// AttendeeStatusPending captures enum value "pending"
	AttendeeStatusPending AttendeeStatus = "pending"

	// AttendeeStatusRejected captures enum value "rejected"
	AttendeeStatusRejected AttendeeStatus = "rejected"

	// AttendeeStatusNone captures enum value "none"
	AttendeeStatusNone AttendeeStatus = "none"
)

func (AttendeeStatus) Validate

func (m AttendeeStatus) Validate(formats strfmt.Registry) error

Validate validates this attendee status

type Coordinates

type Coordinates struct {

	// lat
	// Required: true
	// Maximum: 90
	// Minimum: -90
	Lat *float64 `json:"lat"`

	// lon
	// Required: true
	// Maximum: 180
	// Minimum: -180
	Lon *float64 `json:"lon"`
}

Coordinates coordinates

swagger:model coordinates

func (*Coordinates) MarshalBinary

func (m *Coordinates) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Coordinates) UnmarshalBinary

func (m *Coordinates) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Coordinates) Validate

func (m *Coordinates) Validate(formats strfmt.Registry) error

Validate validates this coordinates

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Location

type Location struct {

	// coordinates
	Coordinates *Coordinates `json:"coordinates,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

Location location

swagger:model location

func (*Location) MarshalBinary

func (m *Location) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

func (m *Location) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Location) Validate

func (m *Location) Validate(formats strfmt.Registry) error

Validate validates this location

type Meetup

type Meetup struct {

	// attendees
	Attendees []UserID `json:"attendees"`

	// canceled
	Canceled bool `json:"canceled,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// id
	// Required: true
	ID MeetupID `json:"id"`

	// location
	Location *Location `json:"location,omitempty"`

	// max capacity
	// Minimum: 0
	MaxCapacity *int64 `json:"maxCapacity,omitempty"`

	// min capacity
	// Minimum: 0
	MinCapacity *int64 `json:"minCapacity,omitempty"`

	// owner
	Owner UserID `json:"owner,omitempty"`

	// pending attendees
	PendingAttendees []UserID `json:"pendingAttendees"`

	// rejected
	Rejected bool `json:"rejected,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

Meetup meetup

swagger:model meetup

func (*Meetup) MarshalBinary

func (m *Meetup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Meetup) UnmarshalBinary

func (m *Meetup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Meetup) Validate

func (m *Meetup) Validate(formats strfmt.Registry) error

Validate validates this meetup

type MeetupID

type MeetupID string

MeetupID meetup ID

swagger:model meetupID

func (MeetupID) Validate

func (m MeetupID) Validate(formats strfmt.Registry) error

Validate validates this meetup ID

type MeetupRequestBody

type MeetupRequestBody struct {

	// description
	Description string `json:"description,omitempty"`

	// location
	Location *Location `json:"location,omitempty"`

	// max capacity
	// Minimum: 0
	MaxCapacity *int64 `json:"maxCapacity,omitempty"`

	// min capacity
	// Minimum: 0
	MinCapacity *int64 `json:"minCapacity,omitempty"`

	// tags
	Tags []string `json:"tags"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

MeetupRequestBody meetup request body

swagger:model meetupRequestBody

func (*MeetupRequestBody) MarshalBinary

func (m *MeetupRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MeetupRequestBody) UnmarshalBinary

func (m *MeetupRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MeetupRequestBody) Validate

func (m *MeetupRequestBody) Validate(formats strfmt.Registry) error

Validate validates this meetup request body

type PatchMeetupAttendeeBody

type PatchMeetupAttendeeBody struct {

	// attendee
	Attendee string `json:"attendee,omitempty"`

	// attendee status
	AttendeeStatus AttendeeStatus `json:"attendeeStatus,omitempty"`
}

PatchMeetupAttendeeBody patch meetup attendee body

swagger:model patchMeetupAttendeeBody

func (*PatchMeetupAttendeeBody) MarshalBinary

func (m *PatchMeetupAttendeeBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchMeetupAttendeeBody) UnmarshalBinary

func (m *PatchMeetupAttendeeBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchMeetupAttendeeBody) Validate

func (m *PatchMeetupAttendeeBody) Validate(formats strfmt.Registry) error

Validate validates this patch meetup attendee body

type TagID

type TagID string

TagID tag ID

swagger:model tagID

func (TagID) Validate

func (m TagID) Validate(formats strfmt.Registry) error

Validate validates this tag ID

type User

type User struct {

	// attending
	Attending []MeetupID `json:"attending,omitempty"`

	// connections
	Connections []string `json:"connections,omitempty"`

	// contact info
	ContactInfo string `json:"contactInfo,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// id
	// Required: true
	ID UserID `json:"id"`

	// interests
	Interests []string `json:"interests,omitempty"`

	// join date
	// Format: date-time
	JoinDate strfmt.DateTime `json:"joinDate,omitempty"`

	// location
	Location *Coordinates `json:"location,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owned meetups
	OwnedMeetups []MeetupID `json:"ownedMeetups,omitempty"`

	// pending approval
	PendingApproval []MeetupID `json:"pendingApproval,omitempty"`

	// profile pic
	ProfilePic string `json:"profilePic,omitempty"`
}

User user

swagger:model user

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

type UserID

type UserID string

UserID user ID

swagger:model userID

func (UserID) Validate

func (m UserID) Validate(formats strfmt.Registry) error

Validate validates this user ID

Jump to

Keyboard shortcuts

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