model

package
v0.0.0-...-9d4efbb Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {

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

	// a (key, value) map.
	Details interface{} `json:"details,omitempty"`

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

func (*APIResponse) ContextValidate

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

ContextValidate validates this Api response based on context it is used

func (*APIResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIResponse) Validate

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

Validate validates this Api response

type APIResponseSignUp

type APIResponseSignUp struct {

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

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

func (*APIResponseSignUp) ContextValidate

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

ContextValidate validate this Api response sign up based on the context it is used

func (*APIResponseSignUp) MarshalBinary

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

MarshalBinary interface implementation

func (*APIResponseSignUp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIResponseSignUp) Validate

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

Validate validates this Api response sign up

type Login

type Login struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// password
	// Required: true
	Password *string `json:"password"`
}

func (*Login) ContextValidate

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

ContextValidate validates this login based on context it is used

func (*Login) MarshalBinary

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

MarshalBinary interface implementation

func (*Login) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Login) Validate

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

Validate validates this login

type Pagination

type Pagination struct {

	// items
	Items interface{} `json:"items,omitempty"`

	// page
	Page int64 `json:"page,omitempty"`

	// page count
	PageCount int64 `json:"pageCount,omitempty"`

	// page size
	PageSize int64 `json:"pageSize,omitempty"`

	// total count
	TotalCount int64 `json:"totalCount,omitempty"`
}

func (*Pagination) ContextValidate

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

ContextValidate validates this pagination based on context it is used

func (*Pagination) MarshalBinary

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

MarshalBinary interface implementation

func (*Pagination) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Pagination) Validate

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

Validate validates this pagination

type SignUp

type SignUp struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// firstname
	// Required: true
	Firstname *string `json:"firstname"`

	// lastname
	// Required: true
	Lastname *string `json:"lastname"`

	// password
	// Required: true
	Password *string `json:"password"`
}

func (*SignUp) ContextValidate

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

ContextValidate validates this sign up based on context it is used

func (*SignUp) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUp) Validate

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

Validate validates this sign up

type SoleToken

type SoleToken struct {

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

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

func (*SoleToken) ContextValidate

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

ContextValidate validates this sole token based on context it is used

func (*SoleToken) MarshalBinary

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

MarshalBinary interface implementation

func (*SoleToken) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SoleToken) Validate

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

Validate validates this sole token

type Token

type Token struct {

	// access token
	AccessToken string `json:"access_token,omitempty"`

	// refresh token
	RefreshToken string `json:"refresh_token,omitempty"`
}

func (*Token) ContextValidate

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

ContextValidate validates this token based on context it is used

func (*Token) MarshalBinary

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

MarshalBinary interface implementation

func (*Token) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Token) Validate

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

Validate validates this token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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