models

package
v0.0.0-...-764e792 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {

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

	// username
	Username string `json:"username,omitempty"`
}

Account account

swagger:model Account

func (*Account) ContextValidate

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

ContextValidate validates this account based on context it is used

func (*Account) MarshalBinary

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

MarshalBinary interface implementation

func (*Account) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Account) Validate

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

Validate validates this account

type AccountCreated

type AccountCreated struct {

	// password
	Password string `json:"password,omitempty"`

	// prefix
	Prefix string `json:"prefix,omitempty"`
}

AccountCreated account created

swagger:model AccountCreated

func (*AccountCreated) ContextValidate

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

ContextValidate validates this account created based on context it is used

func (*AccountCreated) MarshalBinary

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

MarshalBinary interface implementation

func (*AccountCreated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccountCreated) Validate

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

Validate validates this account created

type AccountUpdate

type AccountUpdate struct {

	// status
	Status string `json:"status,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

AccountUpdate account update

swagger:model AccountUpdate

func (*AccountUpdate) ContextValidate

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

ContextValidate validates this account update based on context it is used

func (*AccountUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*AccountUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccountUpdate) Validate

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

Validate validates this account update

type AccountUpdated

type AccountUpdated struct {

	// status
	Status string `json:"status,omitempty"`
}

AccountUpdated account updated

swagger:model AccountUpdated

func (*AccountUpdated) ContextValidate

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

ContextValidate validates this account updated based on context it is used

func (*AccountUpdated) MarshalBinary

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

MarshalBinary interface implementation

func (*AccountUpdated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccountUpdated) Validate

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

Validate validates this account updated

type Error

type Error struct {

	// code
	Code int64 `json:"code,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 Link struct {

	// long url
	LongURL string `json:"long_url,omitempty"`
}

Link link

swagger:model Link

func (*Link) ContextValidate

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

ContextValidate validates this link based on context it is used

func (*Link) MarshalBinary

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

MarshalBinary interface implementation

func (*Link) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Link) Validate

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

Validate validates this link

type LinkCreated

type LinkCreated struct {

	// short url
	ShortURL string `json:"short_url,omitempty"`

	// short url key
	ShortURLKey string `json:"short_url_key,omitempty"`
}

LinkCreated link created

swagger:model LinkCreated

func (*LinkCreated) ContextValidate

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

ContextValidate validates this link created based on context it is used

func (*LinkCreated) MarshalBinary

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

MarshalBinary interface implementation

func (*LinkCreated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LinkCreated) Validate

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

Validate validates this link created

type LinkUpdate

type LinkUpdate struct {

	// new long url
	NewLongURL string `json:"new_long_url,omitempty"`

	// short url key
	ShortURLKey string `json:"short_url_key,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// tracking status
	TrackingStatus string `json:"tracking_status,omitempty"`
}

LinkUpdate link update

swagger:model LinkUpdate

func (*LinkUpdate) ContextValidate

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

ContextValidate validates this link update based on context it is used

func (*LinkUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*LinkUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LinkUpdate) Validate

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

Validate validates this link update

type LinkUpdated

type LinkUpdated struct {

	// long url
	LongURL string `json:"long_url,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// tracking status
	TrackingStatus string `json:"tracking_status,omitempty"`
}

LinkUpdated link updated

swagger:model LinkUpdated

func (*LinkUpdated) ContextValidate

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

ContextValidate validates this link updated based on context it is used

func (*LinkUpdated) MarshalBinary

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

MarshalBinary interface implementation

func (*LinkUpdated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LinkUpdated) Validate

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

Validate validates this link updated

type LoginInfo

type LoginInfo struct {

	// password
	Password string `json:"password,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

LoginInfo login info

swagger:model LoginInfo

func (*LoginInfo) ContextValidate

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

ContextValidate validates this login info based on context it is used

func (*LoginInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginInfo) Validate

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

Validate validates this login info

type LoginSuccess

type LoginSuccess struct {

	// success
	Success bool `json:"success,omitempty"`

	// token
	Token string `json:"token,omitempty"`
}

LoginSuccess login success

swagger:model LoginSuccess

func (*LoginSuccess) ContextValidate

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

ContextValidate validates this login success based on context it is used

func (*LoginSuccess) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginSuccess) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginSuccess) Validate

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

Validate validates this login success

Jump to

Keyboard shortcuts

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