models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 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 CreateUserParams

type CreateUserParams struct {

	// email
	// Required: true
	// Format: email
	Email Email `json:"email"`

	// password
	// Required: true
	// Format: password
	Password Password `json:"password"`

	// username
	// Required: true
	Username Username `json:"username"`
}

CreateUserParams create user params

swagger:model CreateUserParams

func (*CreateUserParams) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateUserParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateUserParams) Validate

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

Validate validates this create user params

type Email

type Email strfmt.Email

UserID email

swagger:model UserID

func (Email) Validate

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

Validate validates this email

type Error

type Error struct {

	// 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 LoginParam

type LoginParam struct {

	// email
	// Required: true
	// Format: email
	Email Email `json:"email"`

	// password
	// Required: true
	// Format: password
	Password Password `json:"password"`
}

LoginParam login param

swagger:model LoginParam

func (*LoginParam) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginParam) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginParam) Validate

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

Validate validates this login param

type Password

type Password strfmt.Password

Password password

swagger:model Password

func (Password) Validate

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

Validate validates this password

type RecoveryCode

type RecoveryCode string

RecoveryCode recovery code

swagger:model RecoveryCode

func (RecoveryCode) Validate

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

Validate validates this recovery code

type UpdatePassword

type UpdatePassword struct {

	// new
	// Required: true
	// Format: password
	New Password `json:"new"`

	// old
	// Required: true
	// Format: password
	Old Password `json:"old"`
}

UpdatePassword update password

swagger:model UpdatePassword

func (*UpdatePassword) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdatePassword) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdatePassword) Validate

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

Validate validates this update password

type User

type User struct {

	// email
	// Required: true
	// Format: email
	Email Email `json:"email"`

	// id
	// Required: true
	ID UserID `json:"id"`

	// username
	// Required: true
	Username Username `json:"username"`
}

User user

swagger:model User

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

type UserID

type UserID int32

UserID user ID

swagger:model UserID

func (UserID) Validate

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

Validate validates this user ID

type Username

type Username string

Username username

swagger:model Username

func (Username) Validate

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

Validate validates this username

Jump to

Keyboard shortcuts

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