models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PingPingPong captures enum value "pong"
	PingPingPong string = "pong"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

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

	// error
	Error bool `json:"error,omitempty"`

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

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 File

type File struct {

	// alt
	Alt string `json:"alt,omitempty"`

	// caption
	Caption string `json:"caption,omitempty"`

	// created
	// Format: date
	Created strfmt.Date `json:"created,omitempty"`

	// created by id
	CreatedByID int64 `json:"created_by_id,omitempty"`

	// deleted
	// Format: date
	Deleted strfmt.Date `json:"deleted,omitempty"`

	// ext
	Ext string `json:"ext,omitempty"`

	// hash
	Hash string `json:"hash,omitempty"`

	// height
	Height int64 `json:"height,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

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

	// provider
	Provider string `json:"provider,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// thumb
	Thumb string `json:"thumb,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated
	// Format: date
	Updated strfmt.Date `json:"updated,omitempty"`

	// updated by id
	UpdatedByID int64 `json:"updated_by_id,omitempty"`

	// width
	Width int64 `json:"width,omitempty"`
}

File file

swagger:model file

func (*File) ContextValidate

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

ContextValidate validates this file based on context it is used

func (*File) MarshalBinary

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

MarshalBinary interface implementation

func (*File) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*File) Validate

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

Validate validates this file

type Metrics

type Metrics map[string]float64

Metrics metrics

swagger:model metrics

func (Metrics) ContextValidate

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

ContextValidate validates this metrics based on context it is used

func (Metrics) Validate

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

Validate validates this metrics

type Ok

type Ok struct {

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

Ok ok

swagger:model ok

func (*Ok) ContextValidate

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

ContextValidate validates this ok based on context it is used

func (*Ok) MarshalBinary

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

MarshalBinary interface implementation

func (*Ok) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ok) Validate

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

Validate validates this ok

type Ping

type Ping struct {

	// Result of method execution. `pong` in case of success
	// Required: true
	// Enum: [pong]
	Ping *string `json:"ping"`
}

Ping ping

swagger:model ping

func (*Ping) ContextValidate

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

ContextValidate validates this ping based on context it is used

func (*Ping) MarshalBinary

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

MarshalBinary interface implementation

func (*Ping) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ping) Validate

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

Validate validates this ping

type Principal

type Principal string

Principal principal

swagger:model principal

func (Principal) ContextValidate

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

ContextValidate validates this principal based on context it is used

func (Principal) Validate

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

Validate validates this principal

type PublicFile

type PublicFile struct {

	// attributes
	Attributes *PublicFileAttributes `json:"attributes,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`
}

PublicFile public file

swagger:model publicFile

func (*PublicFile) ContextValidate

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

ContextValidate validate this public file based on the context it is used

func (*PublicFile) MarshalBinary

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

MarshalBinary interface implementation

func (*PublicFile) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicFile) Validate

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

Validate validates this public file

type PublicFileAttributes

type PublicFileAttributes struct {

	// alt
	Alt string `json:"alt,omitempty"`

	// caption
	Caption string `json:"caption,omitempty"`

	// created
	// Format: date
	Created strfmt.Date `json:"created,omitempty"`

	// created by id
	CreatedByID int64 `json:"created_by_id,omitempty"`

	// deleted
	// Format: date
	Deleted strfmt.Date `json:"deleted,omitempty"`

	// ext
	Ext string `json:"ext,omitempty"`

	// hash
	Hash string `json:"hash,omitempty"`

	// height
	Height int64 `json:"height,omitempty"`

	// mime
	Mime string `json:"mime,omitempty"`

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

	// provider
	Provider string `json:"provider,omitempty"`

	// size
	Size int64 `json:"size,omitempty"`

	// thumb
	Thumb string `json:"thumb,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated
	// Format: date
	Updated strfmt.Date `json:"updated,omitempty"`

	// updated by id
	UpdatedByID int64 `json:"updated_by_id,omitempty"`

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

	// width
	Width int64 `json:"width,omitempty"`
}

PublicFileAttributes public file attributes

swagger:model PublicFileAttributes

func (*PublicFileAttributes) ContextValidate

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

ContextValidate validates this public file attributes based on context it is used

func (*PublicFileAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*PublicFileAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicFileAttributes) Validate

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

Validate validates this public file attributes

type Uploads

type Uploads string

Uploads uploads

swagger:model uploads

func (Uploads) ContextValidate

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

ContextValidate validates this uploads based on context it is used

func (Uploads) Validate

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

Validate validates this uploads

Jump to

Keyboard shortcuts

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