Documentation
¶
Index ¶
- type ProtobufAny
- type RPCStatus
- type UserspbGetUserResponse
- func (m *UserspbGetUserResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UserspbGetUserResponse) MarshalBinary() ([]byte, error)
- func (m *UserspbGetUserResponse) UnmarshalBinary(b []byte) error
- func (m *UserspbGetUserResponse) Validate(formats strfmt.Registry) error
- type UserspbLoginRequest
- type UserspbLoginResponse
- type UserspbRegisterUserRequest
- func (m *UserspbRegisterUserRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UserspbRegisterUserRequest) MarshalBinary() ([]byte, error)
- func (m *UserspbRegisterUserRequest) UnmarshalBinary(b []byte) error
- func (m *UserspbRegisterUserRequest) Validate(formats strfmt.Registry) error
- type UserspbRegisterUserResponse
- func (m *UserspbRegisterUserResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UserspbRegisterUserResponse) MarshalBinary() ([]byte, error)
- func (m *UserspbRegisterUserResponse) UnmarshalBinary(b []byte) error
- func (m *UserspbRegisterUserResponse) Validate(formats strfmt.Registry) error
- type UserspbUser
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 ¶
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
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 ¶
ContextValidate validate this rpc status based on the context it is used
func (*RPCStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*RPCStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type UserspbLoginRequest ¶
type UserspbLoginRequest struct {
// phone
Phone string `json:"phone,omitempty"`
}
UserspbLoginRequest userspb login request
swagger:model userspbLoginRequest
func (*UserspbLoginRequest) ContextValidate ¶
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
type UserspbLoginResponse ¶
type UserspbLoginResponse struct {
// token
Token string `json:"token,omitempty"`
}
UserspbLoginResponse userspb login response
swagger:model userspbLoginResponse
func (*UserspbLoginResponse) ContextValidate ¶
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
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
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
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 ¶
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