Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`

	// user id
	// Read Only: true
	UserID int32 `json:"user_id,omitempty"`
}

Category category

swagger:model category

func (*Category) ContextValidate

func (m *Category) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this category based on the context it is used

func (*Category) MarshalBinary

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

MarshalBinary interface implementation

func (*Category) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Category) Validate

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

Validate validates this category

type CategoryMultiChoice

type CategoryMultiChoice struct {

	// category id
	// Read Only: true
	CategoryID int32 `json:"category_id,omitempty"`

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

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

CategoryMultiChoice category multi choice

swagger:model category_multi_choice

func (*CategoryMultiChoice) ContextValidate

func (m *CategoryMultiChoice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this category multi choice based on the context it is used

func (*CategoryMultiChoice) MarshalBinary

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

MarshalBinary interface implementation

func (*CategoryMultiChoice) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CategoryMultiChoice) Validate

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

Validate validates this category multi choice

type CategorySingleChoice

type CategorySingleChoice struct {

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

	// group id
	// Read Only: true
	GroupID int32 `json:"group_id,omitempty"`

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

CategorySingleChoice category single choice

swagger:model category_single_choice

func (*CategorySingleChoice) ContextValidate

func (m *CategorySingleChoice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this category single choice based on the context it is used

func (*CategorySingleChoice) MarshalBinary

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

MarshalBinary interface implementation

func (*CategorySingleChoice) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CategorySingleChoice) Validate

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

Validate validates this category single choice

type CategorySingleChoiceGroup

type CategorySingleChoiceGroup struct {

	// category id
	// Read Only: true
	CategoryID int32 `json:"category_id,omitempty"`

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

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`
}

CategorySingleChoiceGroup category single choice group

swagger:model category_single_choice_group

func (*CategorySingleChoiceGroup) ContextValidate

func (m *CategorySingleChoiceGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this category single choice group based on the context it is used

func (*CategorySingleChoiceGroup) MarshalBinary

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

MarshalBinary interface implementation

func (*CategorySingleChoiceGroup) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CategorySingleChoiceGroup) Validate

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

Validate validates this category single choice group

type Entry

type Entry struct {

	// diastole
	Diastole float32 `json:"diastole,omitempty"`

	// end time
	// Format: date-time
	EndTime strfmt.DateTime `json:"end_time,omitempty"`

	// have blood pressure
	// Required: true
	HaveBloodPressure *bool `json:"have_blood_pressure"`

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// multi choices
	// Required: true
	MultiChoices []int64 `json:"multi_choices"`

	// pulse
	Pulse float32 `json:"pulse,omitempty"`

	// remarks
	Remarks string `json:"remarks,omitempty"`

	// single choices
	// Required: true
	SingleChoices []int64 `json:"single_choices"`

	// start time
	// Required: true
	// Format: date-time
	StartTime *strfmt.DateTime `json:"start_time"`

	// systole
	Systole float32 `json:"systole,omitempty"`

	// user id
	// Read Only: true
	UserID int32 `json:"user_id,omitempty"`
}

Entry entry

swagger:model entry

func (*Entry) ContextValidate

func (m *Entry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this entry based on the context it is used

func (*Entry) MarshalBinary

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

MarshalBinary interface implementation

func (*Entry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Entry) Validate

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

Validate validates this entry

type Error

type Error struct {

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

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

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 OidcInfo

type OidcInfo struct {

	// client id
	ClientID string `json:"client_id,omitempty"`

	// client secret
	ClientSecret string `json:"client_secret,omitempty"`

	// discovery url
	// Required: true
	DiscoveryURL *string `json:"discovery_url"`
}

OidcInfo oidc info

swagger:model oidc_info

func (*OidcInfo) ContextValidate

func (m *OidcInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this oidc info based on context it is used

func (*OidcInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*OidcInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OidcInfo) Validate

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

Validate validates this oidc info

type User

type User struct {

	// first name
	// Read Only: true
	FirstName string `json:"first_name,omitempty"`

	// id
	// Read Only: true
	ID int32 `json:"id,omitempty"`

	// name
	// Read Only: true
	Name string `json:"name,omitempty"`
}

User user

swagger:model user

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user based on the context it is used

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

Jump to

Keyboard shortcuts

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