models

package
v0.0.0-...-6bdd1f0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableSlot

type AvailableSlot struct {

	// ends at
	// Format: date-time
	EndsAt strfmt.DateTime `json:"ends-at,omitempty"`

	// starts at
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts-at,omitempty"`
}

AvailableSlot available slot

swagger:model AvailableSlot

func (*AvailableSlot) MarshalBinary

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

MarshalBinary interface implementation

func (*AvailableSlot) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AvailableSlot) Validate

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

Validate validates this available slot

type AvailableSlots

type AvailableSlots []*AvailableSlot

AvailableSlots available slots

swagger:model AvailableSlots

func (AvailableSlots) Validate

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

Validate validates this available slots

type Error

type Error struct {

	// Attributes of an error. Specific to the error code
	Attributes []string `json:"attributes"`

	// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code string `json:"code,omitempty"`

	// A list of additional details about the error.
	Details []*Error `json:"details"`

	// A dev message describing the error. Not intented for UI
	Devmessage string `json:"devmessage,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 TrainerAppointment

type TrainerAppointment struct {

	// ends at
	// Format: date-time
	EndsAt strfmt.DateTime `json:"ends-at,omitempty"`

	// id
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// starts at
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts-at,omitempty"`

	// user id
	// Format: uuid
	UserID strfmt.UUID `json:"user-id,omitempty"`
}

TrainerAppointment trainer appointment

swagger:model TrainerAppointment

func (*TrainerAppointment) MarshalBinary

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

MarshalBinary interface implementation

func (*TrainerAppointment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TrainerAppointment) Validate

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

Validate validates this trainer appointment

type TrainerAppointments

type TrainerAppointments []*TrainerAppointment

TrainerAppointments trainer appointments

swagger:model TrainerAppointments

func (TrainerAppointments) Validate

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

Validate validates this trainer appointments

type UserAppointment

type UserAppointment struct {

	// ends at
	// Format: date-time
	EndsAt strfmt.DateTime `json:"ends-at,omitempty"`

	// An appointment dentifier. Ignored in put request
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// starts at
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts-at,omitempty"`

	// trainer id
	// Format: uuid
	TrainerID strfmt.UUID `json:"trainer-id,omitempty"`
}

UserAppointment user appointment

swagger:model UserAppointment

func (*UserAppointment) MarshalBinary

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

MarshalBinary interface implementation

func (*UserAppointment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserAppointment) Validate

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

Validate validates this user appointment

Jump to

Keyboard shortcuts

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