models

package
v0.0.0-...-50c9e83 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {

	// User's email
	// Example: js@example.org
	// Required: true
	Email *string `json:"email"`

	// User's password
	// Example: some_password
	// Required: true
	Password *string `json:"password"`
}

AuthRequest auth request

swagger:model AuthRequest

func (*AuthRequest) ContextValidate

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

ContextValidate validates this auth request based on context it is used

func (*AuthRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthRequest) Validate

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

Validate validates this auth request

type AuthResponse

type AuthResponse struct {

	// user
	User *User `json:"user,omitempty"`
}

AuthResponse auth response

swagger:model AuthResponse

func (*AuthResponse) ContextValidate

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

ContextValidate validate this auth response based on the context it is used

func (*AuthResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthResponse) Validate

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

Validate validates this auth response

type ErrorResponse

type ErrorResponse struct {

	// a human-readable explanation of the error
	// Example: Bad Authentication data.
	Message string `json:"message,omitempty"`

	// the HTTP response code
	// Example: 401
	Status int64 `json:"status,omitempty"`

	// Type of the error message
	// Example: OAuthException
	Type string `json:"type,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

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

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

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

Validate validates this error response

type SignupRequest

type SignupRequest struct {

	// User's email
	// Example: js@example.org
	// Required: true
	// Format: email
	Email *strfmt.Email `json:"email"`

	// User's first name
	// Example: John
	// Required: true
	Firstname *string `json:"firstname"`

	// User's last name
	// Example: Smith
	// Required: true
	Lastname *string `json:"lastname"`

	// User's password
	// Example: some_password
	// Required: true
	Password *string `json:"password"`
}

SignupRequest signup request

swagger:model SignupRequest

func (*SignupRequest) ContextValidate

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

ContextValidate validates this signup request based on context it is used

func (*SignupRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*SignupRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignupRequest) Validate

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

Validate validates this signup request

type SignupResponse

type SignupResponse struct {

	// user
	User *User `json:"user,omitempty"`
}

SignupResponse signup response

swagger:model SignupResponse

func (*SignupResponse) ContextValidate

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

ContextValidate validate this signup response based on the context it is used

func (*SignupResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*SignupResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignupResponse) Validate

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

Validate validates this signup response

type User

type User struct {

	// User's first name
	// Example: John
	Firstname string `json:"firstname,omitempty"`

	// User's API Key that the client needs to provide when making API calls.
	// Example: some_api_key
	Key string `json:"key,omitempty"`

	// User's last name
	// Example: Smith
	Lastname string `json:"lastname,omitempty"`

	// User's session ID
	// Example: 6c160004-35c8-45b1-a4da-0ab67076afde
	Sid string `json:"sid,omitempty"`

	// User's ID in the system
	// Example: 545648798
	UID int64 `json:"uid,omitempty"`
}

User user

swagger:model User

func (*User) ContextValidate

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

ContextValidate validates this user based on context it is used

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 UserState

type UserState struct {

	// User's ID exp points in the system
	// Example: 545648798
	Exp int64 `json:"exp,omitempty"`

	// Some User's flags.
	// Example: 99
	Flags int64 `json:"flags,omitempty"`

	// Game's ID (if game_id == 0 or absent then user in the lobby)
	// Example: 144
	GameID int32 `json:"game_id,omitempty"`

	// User's ID lives count in the system
	// Example: 5
	Lives int64 `json:"lives,omitempty"`

	// Generated nickname in the system
	// Example: John
	Nickname string `json:"nickname,omitempty"`

	// User's ID in the system
	// Example: 545648798
	UID int64 `json:"uid,omitempty"`
}

UserState user state

swagger:model UserState

func (*UserState) ContextValidate

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

ContextValidate validates this user state based on context it is used

func (*UserState) MarshalBinary

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

MarshalBinary interface implementation

func (*UserState) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserState) Validate

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

Validate validates this user state

type UserStateRequest

type UserStateRequest struct {

	// User's ID
	// Example: 100500
	// Required: true
	UID *int64 `json:"uid"`
}

UserStateRequest user state request

swagger:model UserStateRequest

func (*UserStateRequest) ContextValidate

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

ContextValidate validates this user state request based on context it is used

func (*UserStateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserStateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserStateRequest) Validate

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

Validate validates this user state request

type UserStateResponse

type UserStateResponse struct {

	// user state
	UserState *UserState `json:"user_state,omitempty"`
}

UserStateResponse user state response

swagger:model UserStateResponse

func (*UserStateResponse) ContextValidate

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

ContextValidate validate this user state response based on the context it is used

func (*UserStateResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserStateResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserStateResponse) Validate

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

Validate validates this user state response

Jump to

Keyboard shortcuts

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