models

package
v0.0.0-...-21410c9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

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

	// fields
	Fields string `json:"fields,omitempty"`

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

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 Shorturl

type Shorturl struct {

	// shorneted URL
	// Required: true
	Shorturl *string `json:"shorturl"`
}

Shorturl shorturl

swagger:model shorturl

func (*Shorturl) MarshalBinary

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

MarshalBinary interface implementation

func (*Shorturl) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Shorturl) Validate

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

Validate validates this shorturl

type URL

type URL struct {

	// initial URL to be shortened
	// Required: true
	URL *string `json:"url"`
}

URL url

swagger:model url

func (*URL) MarshalBinary

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

MarshalBinary interface implementation

func (*URL) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*URL) Validate

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

Validate validates this url

Jump to

Keyboard shortcuts

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