models

package
v0.0.0-...-f21d557 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 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 ProtobufAny

type ProtobufAny struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

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

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufAny) Validate

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

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

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

	// details
	Details []*ProtobufAny `json:"details"`

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

RPCStatus rpc status

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

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

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

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

Validate validates this rpc status

type UserspbGetUserResponse

type UserspbGetUserResponse struct {

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

UserspbGetUserResponse userspb get user response

swagger:model userspbGetUserResponse

func (*UserspbGetUserResponse) ContextValidate

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

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

func (*UserspbGetUserResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbGetUserResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbGetUserResponse) Validate

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

Validate validates this userspb get user response

type UserspbLoginRequest

type UserspbLoginRequest struct {

	// phone
	Phone string `json:"phone,omitempty"`
}

UserspbLoginRequest userspb login request

swagger:model userspbLoginRequest

func (*UserspbLoginRequest) ContextValidate

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

ContextValidate validates this userspb login request based on context it is used

func (*UserspbLoginRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbLoginRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbLoginRequest) Validate

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

Validate validates this userspb login request

type UserspbLoginResponse

type UserspbLoginResponse struct {

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

UserspbLoginResponse userspb login response

swagger:model userspbLoginResponse

func (*UserspbLoginResponse) ContextValidate

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

ContextValidate validates this userspb login response based on context it is used

func (*UserspbLoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbLoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbLoginResponse) Validate

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

Validate validates this userspb login response

type UserspbRegisterUserRequest

type UserspbRegisterUserRequest struct {

	// name
	Name string `json:"name,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`
}

UserspbRegisterUserRequest userspb register user request

swagger:model userspbRegisterUserRequest

func (*UserspbRegisterUserRequest) ContextValidate

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

ContextValidate validates this userspb register user request based on context it is used

func (*UserspbRegisterUserRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbRegisterUserRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbRegisterUserRequest) Validate

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

Validate validates this userspb register user request

type UserspbRegisterUserResponse

type UserspbRegisterUserResponse struct {

	// id
	ID string `json:"id,omitempty"`
}

UserspbRegisterUserResponse userspb register user response

swagger:model userspbRegisterUserResponse

func (*UserspbRegisterUserResponse) ContextValidate

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

ContextValidate validates this userspb register user response based on context it is used

func (*UserspbRegisterUserResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbRegisterUserResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbRegisterUserResponse) Validate

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

Validate validates this userspb register user response

type UserspbUser

type UserspbUser struct {

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`
}

UserspbUser userspb user

swagger:model userspbUser

func (*UserspbUser) ContextValidate

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

ContextValidate validates this userspb user based on context it is used

func (*UserspbUser) MarshalBinary

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

MarshalBinary interface implementation

func (*UserspbUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserspbUser) Validate

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

Validate validates this userspb user

Jump to

Keyboard shortcuts

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